How to get and unget input from streams in C (getstring, fgetc, ungetc).
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
How to get and unget input from streams in C (getstring, fgetc, ungetc) // Reading a line from a file or stdin seems super basic, but a lot of students get hung up in the details. This video shows you how to get input from a stream, file, or pipe, using fgetc and ungetc to make your own function like the getstring function in Harvard's CS50 course.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
Видео How to get and unget input from streams in C (getstring, fgetc, ungetc). канала Jacob Sorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
How to get and unget input from streams in C (getstring, fgetc, ungetc) // Reading a line from a file or stdin seems super basic, but a lot of students get hung up in the details. This video shows you how to get input from a stream, file, or pipe, using fgetc and ungetc to make your own function like the getstring function in Harvard's CS50 course.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
Видео How to get and unget input from streams in C (getstring, fgetc, ungetc). канала Jacob Sorber
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Does it matter what programming language you use?](https://i.ytimg.com/vi/lEWFr98UqY0/default.jpg)
![Debugging with Macros (-g3,-ggdb)](https://i.ytimg.com/vi/dh1mil1ehvE/default.jpg)
![Learn CS like a new language (Happy New Year from Cambodia)](https://i.ytimg.com/vi/JYSYHTfOFgU/default.jpg)
![Lego Moria](https://i.ytimg.com/vi/0H1QXspkStA/default.jpg)
![How to wire-up and program a button. (digital inputs, microcontrollers)](https://i.ytimg.com/vi/L69eIm472nY/default.jpg)
![Fixing our "better" hash table's memory leaks (in c)](https://i.ytimg.com/vi/OQHDEhLKVv0/default.jpg)
![Sorting in C: Why the double pointers when sorting pointers? (qsort)](https://i.ytimg.com/vi/X-mSc_xZXOE/default.jpg)
![How to Debug Shims and Set Environment Variables in GDB](https://i.ytimg.com/vi/tKst2_96vB8/default.jpg)
![How do I Set, Clear, and Toggle a Single Bit?](https://i.ytimg.com/vi/F9742wnBWRc/default.jpg)
![Comments and Commenting in C](https://i.ytimg.com/vi/PP03QAsIij8/default.jpg)
![CPU Scheduling Basics](https://i.ytimg.com/vi/Jkmy2YLUbUY/default.jpg)
![How to Automatically Run a Function When My Program Exits. (atexit)](https://i.ytimg.com/vi/PVIzokTJdVM/default.jpg)
![Making forked clones more useful with exec()!](https://i.ytimg.com/vi/kDxjcyHu_Qs/default.jpg)
![How to Intercept and Modify Library Calls with Shims.](https://i.ytimg.com/vi/5HuM_eVjFJo/default.jpg)
![What about Pointer Arithmetic with Void Pointers?](https://i.ytimg.com/vi/8T0WOABe7OY/default.jpg)
![How to get an IP address from a host name? (Example in C)](https://i.ytimg.com/vi/yN6EGfv5Dew/default.jpg)
![The Ternary Operator (examples in C and C++)](https://i.ytimg.com/vi/PfMV_wa0KY4/default.jpg)
![They're Just Bits! Types and Structuring Memory in C.](https://i.ytimg.com/vi/phYM4L1BBjI/default.jpg)
![Does it matter how I write my infinite loops? (for vs. while?)](https://i.ytimg.com/vi/bC2dfBJwtMY/default.jpg)
![How do I make multiple concurrent progress bars in the terminal? (tutorial in C)](https://i.ytimg.com/vi/ayfCxgVStdQ/default.jpg)
![Does it matter what hash function I use? (hash table example in c)](https://i.ytimg.com/vi/MXdF-n-hAQU/default.jpg)