#include <string.h> strtok()
http://www-ccs.ucsd.edu/c/string.html#strtok
Type: Posts; User: c99
#include <string.h> strtok()
http://www-ccs.ucsd.edu/c/string.html#strtok
Cool. Yeah I was just informed that on IRC too.
What was the equivalent of ../ then? ..:?
Prelude.
Which filesystem/OS uses colons as a separator?
fopen("full/path/to/dir/filename", "w");
Yes, of course.
In my defense, parse error, hallucinating, and just woke up. :D
What I did learn though, was that EBCDIC is the reason that
the C programming language has trigraphs.
ASCII '8' - '0' == 0x38 (decimal 56)
Unless of course we're talking about EBCDIC which
is apparently the case.
http://www.natural-innovations.com/computing/asciiebcdic.html
chris.
Take a peek at this -> http://oakroadsystems.com/tech/c-predef.htm#ident_
That's quite interesting to know. Thanks for the extra info.
Okay, what about...
...
printf("string");
fflush(stdout);
WAIT;
Does that still happen if you #include <stdlib.h>
Lior.
Am I assuming correctly that because you opened the file in text
mode and the edit operation was successful, that you ran the
executable on a *nix machine?
I'll also add that the code...
Hammer.
Okay, cool. I'll ponder that for a time.
Lior.
Never assume just because something appears to work that it
is right or will always work under all circumstances.
C will most likely tear you apart in the not too distant future if you...
Hammer.
Do you have documentation that supports the postulate that
fseek can only be used on a file opened in binary mode?
Else could you explain the reasoning behind the postulate?
Thanks...
If you write '3' then it's as good as deleted.
If you write a space ' ' then again it's as good as deleted.
If you write '\0' it's ...
And don't forget the file position indicator begins at...
Salem.
True, everything is just too approxiamate about these clock calls.
#include <time.h>
#include <stdio.h>
int main(void)
{
clock_t stop;
getchar();
quzah.
Sorry, somehow external influences (points at Salem) convinced me not to use
CLOCKS_PER_SEC when in reality using CLOCKS_PER_SEC was the correct
and standard course to take.
What is...
Then I'd say you have an extremely slow machine and should probably upgrade...
Seriously though,
CLOCKS_PER_SEC is different on different machines, but whatever
the actual value of...
Incorrect.
The current standard, C99, allows it, however it must be noted that any variable
declared within a for loop only has block (local) scope.
YevGenius.
Please decide whether you're going to code this in C or C++.
Once decided place the code in the appropriate forum.
Micko.
Off topic but worth mentioning, you shouldn't begin identifiers with _
http://oakroadsystems.com/tech/c-predef.htm#ident_
orthanc.
This may provide a clue.
#include <time.h>
#include <stdio.h>
int main(void)
I'd suggest you post to the C++ forum.
Master5001, FYI pthreads are the premier thread
library used in C programming and on most platforms.
Anyway clive,
pthread_mutex_t is used to declare an object of type mutex.
thus:...