Загрузка...

How to Actually Learn C (2027 Edition)

This is a quick and painless tutorial on starting to impelement Coreutils 'ls' in C.

*Repo:* https://github.com/tonybanters/lsbtw
*XMPP Room* xmpp:tonybtw@conference.xmpp.tonybtw.com?join
*Ko-Fi:* https://ko-fi.com/tonybtw

*Music:*
https://www.youtube.com/watch?v=RPrgNFnbAhQ
https://www.youtube.com/watch?v=Jy7FMagiTFk

Chapters
0:00 Intro
1:15 The Plan: ls, ls -a, ls -l
2:10 Your First C Program: main()
2:45 Compiling with GCC
3:27 printf and Header Files
4:13 Command-Line Args: argc & argv
5:59 Handling a Missing Argument
6:53 Opening a Directory: opendir
8:21 Error Handling with perror
9:36 Reading Entries: readdir
11:23 Looping Over the Directory
12:01 Hiding Dotfiles & closedir
13:18 Parsing -a with getopt
16:47 Implementing -l: The stat Syscall
17:44 Building the Permission String
21:20 Owner & Group Lookups
22:26 print_long & lstat
25:57 First Test: Permissions, User, Group
26:49 Formatting the Date with strftime
28:43 Adding Size & Link Count
29:33 Wiring Up the -l Flag
30:34 Final Demo: ls -l and ls -la
31:06 Obligatory Neofetch
#linux #c #programming

Видео How to Actually Learn C (2027 Edition) канала tony
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять