C

C stands for Control.
Sep 10, 2017 02:34
What a beautiful discussion that we have haha, I still have a hope that there is a rationale or something, thank you so much for the advice I'll remember it
free @PeterVaro @Byte;
Sep 10, 2017 02:03
so do you think setvbuf stands for set variable buffer then? really back then when I first learn C, I don't know the essence what does fgets is, sscanf is what printf is, I just only know it used for input or output, and I often easily forget it. Since i know the abbreviation, it makes me easier to remind what is this function doing, everything is beautifully mapped in my brain.
What is your advice then? Should I keep trial and error finding the abbreviation of all the standards API or even POSIX stands for?
Sep 10, 2017 01:50
thank you for kindness, I really appreciate it, yes it must have I agree with you, but some of the naming convention is not easy to extract such as setvbuf, I think that v is variadic, but I could be wrong, this is the C11 Latest Working Draft Standard port70.net/~nsz/c/c11/n1570.pdf Nowhere does it mentions why setvbuf was chosed
Sep 10, 2017 01:45
helloc @PeterVaro;
nice new feature btw
Sep 10, 2017 01:42
If I might ask,
the C standard has an API, such as fscanf, vfscanf, but where those naming came from? for example, how do I know what setvbuf stands for? There must be some document which explain why these function naming choosen, but unfortunately I can't find it anywhere in the Internet. Would you like to help me?
Sep 2, 2017 22:42
@Idle001 what is wrong? lol
Sep 2, 2017 07:55
@Kamiccolo Thanks, next question, what is the difference between toolchain, toolset and compiler suite?
Sep 2, 2017 02:21
If I might ask, what is the difference between mingw and gnu toolchain?
Dec 11, 2016 04:00
The result is more awkward if I called setlocale(LC_ALL, "");
What's wrong with this?
Dec 11, 2016 03:58
Dec 11, 2016 03:57
I use Windows 10 with TDM-GCC 4.9.2
Dec 11, 2016 03:18
Well I don't know why,
Consider this code,

wchar_t i;
for(i = 0; i <= 1024; i++) putwchar(i);

I can only print up to 255 which is the range of unsigned char, what's wrong with this?
Dec 11, 2016 01:55
@Schwern my sizeof(wchar_t) is 2, How about you?
Dec 11, 2016 01:44
wprintf(L"\n Input a sentence : "); fgetws(DATA.string, sizeof(DATA.string), stdin);

Even before fread and fwrite my DATA.string can't store it
Dec 11, 2016 01:38
How do I change the locale?
Even If I input ¤ 'CURRENCY SIGN' (U+00A4) '\164' It won't work either
Dec 11, 2016 00:53
But I have tried this code
http://ideone.com/ECuiA9

And I got an unwanted result
https://i.sstatic.net/2xHkV.png
Dec 11, 2016 00:23
Does C also support wide oriented binary stream?
There is no fread and fwrite for wide oriented binary stream
How could I write a struct to a file with wide char member in it?
 

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
Sep 10, 2017 02:04
@JerryCoffin That's make a lot more sense, I thought it was variadic. I just remembered vfscanf and vfprintf
Sep 10, 2017 01:57
@JerryCoffin would you like to help me then, what does setvbuf stand for?
Sep 10, 2017 01:42
If I might ask,
the C standard has an API, such as fscanf, vfscanf, but where those naming came from? for example, how do I know what setvbuf stands for? There must be some document which explain why these function naming choosen, but unfortunately I can't find it anywhere in the Internet. Would you like to help me?
Sep 2, 2017 22:29
@sehe Thank you, that makes sense, there is no standardization in case of programming vocabulary lol, people often talk the same meaning with these words, nice fuzzy logic
Sep 2, 2017 22:15
what is the difference between toolset, toolchain, and compiler suite?
Sep 2, 2017 05:52
second question, what is the difference between toolset, toolchain, and compiler suite?
Sep 2, 2017 05:24
@Lalaland I thought that it was different, I thought that gcc is a tool and gcc toolset is a set of gcc tool, i'm confused
Sep 2, 2017 05:19
@Lalaland
Sep 2, 2017 05:04
but gcc toolset can be from anywhere, am I correct?
Sep 2, 2017 04:57
gcc stand for gnu compiler collection, does that mean gcc toolchain is a tool for building program but not produced by gnu project?
Sep 2, 2017 04:53
and some people also mixing gnu toolchain and gcc toolchain, which makes more confusing
Sep 2, 2017 04:47
@Lalaland
Sep 2, 2017 04:47
So mingw and friends include modified gnu toolchain plus some of their own tools?
Sep 2, 2017 04:47
It confuse me as a newbie
Sep 2, 2017 04:46
I don't know why people often mixing the terms of toolchain, toolset, compiler suite and compilers
Sep 2, 2017 04:45
We know that, GNU Toolchain consist of: GNU make, GNU Compiler Collection (GCC), GNU Binutils, GNU Bison, GNU m4, GNU Debugger (GDB), GNU build system (autotools)
Sep 2, 2017 04:16
so my question will be, what is the difference between mingw (or cygwin or msys) and gnu toolchain?
Sep 2, 2017 04:13
@Lalaland GNU Toolchain is a broad collection of programming tools produced by the GNU Project right? I don't think cygwin and mingw produced by gnu project, am I correct? en.wikipedia.org/wiki/GNU_toolchain
Sep 2, 2017 02:31
If I might ask, what is the difference between mingw and gnu toolchain?
Sep 1, 2017 03:19
hi hi?
Sep 1, 2017 01:32
Can gnu toolchain also work in windows? or partially? or something?
Sep 1, 2017 01:29
So what is the difference between mingw and gnu toolchain?
Sep 1, 2017 01:29
@milleniumbug I got it, they make their own version of gnu toolchain
Sep 1, 2017 01:20
Does gnu toolchiain and gcc toolset in that context different?
Sep 1, 2017 01:18
I've read that TDM-GCC combines GCC toolset, a few patches for Windows-friendliness, and the free and open-source MingW or MinGW-w64
http://tdm-gcc.tdragon.net/about
Sep 1, 2017 01:17
If I might ask, what is the difference between mingw and gnu toolchain?
Dec 12, 2016 04:14
what how did you do that? even ideone cannot print it well
http://ideone.com/1crmtQ
Dec 11, 2016 03:59
Dec 11, 2016 03:59
I use Windows 10 with TDM-GCC 4.9.2
Dec 11, 2016 03:18
Well I don't know why,
Consider this code,

wchar_t i;
for(i = 0; i <= 1024; i++) putwchar(i);

I can only print up to 255 which is the range of unsigned char, what's wrong with this?
Dec 11, 2016 01:47
I think it is locale problem?
Dec 11, 2016 01:45
You are right
wprintf(L"\n Input a sentence : "); fgetws(DATA.string, sizeof(DATA.string), stdin);
Even before fread and fwrite my DATA.string can't store the currency sign '\164' ¤
Dec 10, 2016 14:34
@milleniumbug ping..