Search:

Type: Posts; User: c99

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: new to C

    by c99
    Replies
    6
    Views
    3,934

    #include strtok() ...

    #include <string.h> strtok()

    http://www-ccs.ucsd.edu/c/string.html#strtok
  2. Replies
    7
    Views
    4,757

    Cool. Yeah I was just informed that on IRC too. ...

    Cool. Yeah I was just informed that on IRC too.

    What was the equivalent of ../ then? ..:?
  3. Replies
    7
    Views
    4,757

    Prelude. Which filesystem/OS uses colons as a...

    Prelude.

    Which filesystem/OS uses colons as a separator?
  4. Replies
    7
    Views
    4,757

    fopen("full/path/to/dir/filename", "w");

    fopen("full/path/to/dir/filename", "w");
  5. Replies
    5
    Views
    3,962

    Yes, of course. In my defense, parse error,...

    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.
  6. Replies
    5
    Views
    3,962

    ASCII '8' - '0' == 0x38 (decimal 56) Unless of...

    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
  7. Replies
    11
    Views
    3,725

    chris. Take a peek at this ->...

    chris.

    Take a peek at this -> http://oakroadsystems.com/tech/c-predef.htm#ident_
  8. Replies
    10
    Views
    3,267

    That's quite interesting to know. Thanks for the...

    That's quite interesting to know. Thanks for the extra info.
  9. Replies
    10
    Views
    3,267

    Okay, what about... ... ...

    Okay, what about...



    ...
    printf("string");

    fflush(stdout);

    WAIT;
  10. Replies
    10
    Views
    3,267

    Does that still happen if you #include

    Does that still happen if you #include <stdlib.h>
  11. Replies
    12
    Views
    3,264

    Lior. Am I assuming correctly that because you...

    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...
  12. Replies
    12
    Views
    3,264

    Hammer. Okay, cool. I'll ponder that for a...

    Hammer.

    Okay, cool. I'll ponder that for a time.
  13. Replies
    12
    Views
    3,264

    Lior. Never assume just because something...

    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...
  14. Replies
    12
    Views
    3,264

    Hammer. Do you have documentation that...

    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...
  15. Replies
    12
    Views
    3,264

    If you write '3' then it's as good as deleted. ...

    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...
  16. Replies
    10
    Views
    64,349

    Salem. True, everything is just too...

    Salem.

    True, everything is just too approxiamate about these clock calls.
  17. Replies
    10
    Views
    64,349

    #include #include int...

    #include <time.h>
    #include <stdio.h>


    int main(void)
    {
    clock_t stop;


    getchar();
  18. Replies
    10
    Views
    64,349

    quzah. Sorry, somehow external influences...

    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...
  19. Replies
    10
    Views
    64,349

    Then I'd say you have an extremely slow machine...

    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...
  20. Replies
    9
    Views
    3,424

    Incorrect. The current standard, C99, allows...

    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.
  21. Replies
    8
    Views
    4,806

    YevGenius. Please decide whether you're going...

    YevGenius.

    Please decide whether you're going to code this in C or C++.

    Once decided place the code in the appropriate forum.
  22. Replies
    9
    Views
    6,570

    Micko. Off topic but worth mentioning, you...

    Micko.

    Off topic but worth mentioning, you shouldn't begin identifiers with _

    http://oakroadsystems.com/tech/c-predef.htm#ident_
  23. Replies
    10
    Views
    64,349

    orthanc. This may provide a clue. ...

    orthanc.

    This may provide a clue.



    #include <time.h>
    #include <stdio.h>

    int main(void)
  24. Thread: Linked list

    by c99
    Replies
    9
    Views
    3,377

    I'd suggest you post to the C++ forum.

    I'd suggest you post to the C++ forum.
  25. Thread: pthread_mutex_t

    by c99
    Replies
    3
    Views
    14,698

    Master5001, FYI pthreads are the premier thread...

    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:...
Results 1 to 25 of 96
Page 1 of 4 1 2 3 4