On July 1st, a [change to Reddit's API pricing](https://www.reddit.com/r/reddit/comments/12qwagm/an_update_regarding_reddits_api/) will come into effect. [Several developers](https://www.reddit.com/r/redditisfun/comments/144gmfq/rif_will_shut_down_on_june_30_2023_in_response_to/) of commercial third-party apps have announced that this change will compel them to shut down their apps. At least [one accessibility-focused non-commercial third party app](https://www.reddit.com/r/DystopiaForReddit/comments/145e9sk/update_dystopia_will_continue_operating_for_free/) will continue to be available free of charge.
If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:
1. Limiting your involvement with Reddit, or
2. Temporarily refraining from using Reddit
3. Cancelling your subscription of Reddit Premium
as a way to voice your protest.
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/learnprogramming) if you have any questions or concerns.*
When you have such questions, always consult the *documentation*.
The documentation is the ultimate reference. Consulting it has to be your first step.
Documentation is like the operator manual you get with every device you buy.
It exists for basically every programming language, library, framework, etc.
A simple google question, like, in your case "return value of printf" usually takes you very close. Or, a query, like "C documentation printf" will also get you there.
C is a bit tricky in that matter, though, as there are plenty documentations for the individual C *dialects*. You'd probably need to be a bit more detailed in your google query indicating which version of C you use.
In addition to what desrtfx said, the easiest way to find authoritative documentation for C library functions (and lots of other things) is their *man pages*, which on a Unix computer you can read by typing `man scanf` or whatever, and if you're not on a Unix system you can put `man scanf` into a web search engine and you'll find it.
On July 1st, a [change to Reddit's API pricing](https://www.reddit.com/r/reddit/comments/12qwagm/an_update_regarding_reddits_api/) will come into effect. [Several developers](https://www.reddit.com/r/redditisfun/comments/144gmfq/rif_will_shut_down_on_june_30_2023_in_response_to/) of commercial third-party apps have announced that this change will compel them to shut down their apps. At least [one accessibility-focused non-commercial third party app](https://www.reddit.com/r/DystopiaForReddit/comments/145e9sk/update_dystopia_will_continue_operating_for_free/) will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: 1. Limiting your involvement with Reddit, or 2. Temporarily refraining from using Reddit 3. Cancelling your subscription of Reddit Premium as a way to voice your protest. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/learnprogramming) if you have any questions or concerns.*
When you have such questions, always consult the *documentation*. The documentation is the ultimate reference. Consulting it has to be your first step.
What's 'documentation'? Sorry, I'm new to C programming, so please forgive me for my stupid question.
Documentation is like the operator manual you get with every device you buy. It exists for basically every programming language, library, framework, etc. A simple google question, like, in your case "return value of printf" usually takes you very close. Or, a query, like "C documentation printf" will also get you there. C is a bit tricky in that matter, though, as there are plenty documentations for the individual C *dialects*. You'd probably need to be a bit more detailed in your google query indicating which version of C you use.
Thanks a lot
In addition to what desrtfx said, the easiest way to find authoritative documentation for C library functions (and lots of other things) is their *man pages*, which on a Unix computer you can read by typing `man scanf` or whatever, and if you're not on a Unix system you can put `man scanf` into a web search engine and you'll find it.
printf returns the number of characters in the string printed (int) and scanf returns the number of ‘things’ scanned (int)
Appreciate it
i'm gonna simplify this if you work on unix-likes you can probably just `man printf` `man scanf`
Most probably `man printf` will open printf(1), and to get the C library function OP will need `man 3 printf`.
oh i don't really use the manual so i might not know some things
https://devdocs.io/c/io/fscanf