If one does
printf("something\n");
on a Mac,
does that print the right line-termination sequence for Mac OS? I am not sure, but i recall reading that the sequence was \n\r for earlier Mac releases. If so will the line above print \r\n into the stream?
Basically, i'm trying to determine if \n in printf is equivalent to cout << endl in C++.
Thanks.
printf("something\n");
on a Mac,
does that print the right line-termination sequence for Mac OS? I am not sure, but i recall reading that the sequence was \n\r for earlier Mac releases. If so will the line above print \r\n into the stream?
Basically, i'm trying to determine if \n in printf is equivalent to cout << endl in C++.
Thanks.