Search:

Type: Posts; User: Sysop_fb

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    2,313

    When learning assembly for the first time you're...

    When learning assembly for the first time you're not learning the registers or the instructions. All of that can be easily accomplished with reference cards.

    You should be learning how memory...
  2. Replies
    6
    Views
    11,916

    When I see 'a-h' I think of pattern matching...

    When I see 'a-h' I think of pattern matching immediately
  3. Replies
    3
    Views
    1,938

    printf

    printf
  4. Replies
    33
    Views
    11,772

    You'd probably turn Earth into a larger version...

    You'd probably turn Earth into a larger version of the moon only crispier.
    Or the sheer magnitude alone would ignite our atmosphere and turn Earth into a mini sun.


    Just get some anti-matter and...
  5. Replies
    4
    Views
    1,519

    http://www.htmlgoodies.com/beyond/webmaster/articl...

    http://www.htmlgoodies.com/beyond/webmaster/article.php/3473261

    Here's a simple introduction to DNS.
    There are free domain names still around such as dyndns.
    Since it appears this is what you're...
  6. Replies
    14
    Views
    2,408

    What do you think realloc returns?

    What do you think realloc returns?
  7. Thread: malloc

    by Sysop_fb
    Replies
    3
    Views
    1,851

    What are you referring to? Casting the return...

    What are you referring to? Casting the return value of malloc?
    C does type coercian from void to any other type automatically so casting malloc only has the potential of evil side-effects.
  8. Replies
    4
    Views
    3,653

    I don't see why using a pointer that's already...

    I don't see why using a pointer that's already pointing to allocated memory to store the return value of a new malloc call would cause malloc to fail.
    Granted it's not a good thing since you'll...
  9. Replies
    24
    Views
    3,438

    char* is a pointer not an array, char* name[30]...

    char* is a pointer not an array, char* name[30] is an array of pointers if you want to use a pointer then allocate memory for the pointer to point to so you can put data into the allocated memory, or...
  10. Thread: Line Counting

    by Sysop_fb
    Replies
    26
    Views
    26,447

    True but what happens if the line exceeds the...

    True but what happens if the line exceeds the array limits? It would continue to pull in data until it reached the new-line character each time doing a call to fgets and incrementing the counter each...
  11. Replies
    6
    Views
    1,273

    You're probably just compiling that code as C++...

    You're probably just compiling that code as C++ code.
    Or it's defaulting to using C99 standard as I think that's legal in C99.
  12. Replies
    10
    Views
    2,761

    1) When I picked up C I had about 6 years...

    1) When I picked up C I had about 6 years experience on a unix environment doing mostly scripting, to much computer experience in general to recall.

    2) You won't be for years upon years, I've been...
  13. Replies
    7
    Views
    2,573

    Oops should of looked at the code closer before...

    Oops should of looked at the code closer before posting -.- sorry
  14. Replies
    7
    Views
    2,573

    As well as getting into the habbit of checking...

    As well as getting into the habbit of checking that the pointer doesn't equal NULL before trying to utilize it.
    Granted from getting input from the user there should be a new line character but...
  15. Replies
    6
    Views
    1,164

    So you basically need to read in a file and...

    So you basically need to read in a file and append it to another file? Why don't you just put fgets in a while loop until EOF and put each line you get into the other file.
    Or in linux it would be...
  16. You can check out this website as well ...

    You can check out this website as well

    http://www.gamedev.net/reference/articles/article1563.asp?the_id=69
  17. return 0; That's causing your program to end.....

    return 0;

    That's causing your program to end..
    Also watch your bracket use, here's a sample to compare.



    /*mavrakp1.c */
    /*Created by Colleen Mavrakos 2/7/2006 */
  18. Replies
    8
    Views
    4,760

    Consider researching the strchr() function to...

    Consider researching the strchr() function to find a certain character in a character array.
  19. Replies
    13
    Views
    6,738

    The bottom line being... While most of the...

    The bottom line being...
    While most of the popular operating systems will automatically reclaim the memory your program has allocated for itself, it's not a requirement of the operating system and...
  20. Replies
    14
    Views
    1,452

    You can also use sprintf sprintf(cpr2,...

    You can also use sprintf


    sprintf(cpr2, "%.*s", 5, cpr1);

    Or strncpy or multiple different things depend on the circumstances.
  21. if(s[i]=' ') Right off the bat that's an...

    if(s[i]=' ')
    Right off the bat that's an assignment in a conditional expression.
    And main returns an int
  22. Replies
    2
    Views
    2,227

    Get the length of the string - 1. And just...

    Get the length of the string - 1.
    And just implement that into a for loop with another variable initialized to 0 and increment that while decrementing the length.
    Using a temp variable you can just...
  23. How so all I got out of it was he wanted an easy...

    How so all I got out of it was he wanted an easy way to share files between his PC and his laptop. Which all you'd need would be a crossover cable :)
    On 'syncing' the hard drives'... in regards to...
  24. Get yourself a docking station a KVM and a...

    Get yourself a docking station a KVM and a crossover cable :)
  25. Replies
    12
    Views
    2,629

    ./ is not a command it's merely specifying the...

    ./ is not a command it's merely specifying the path of the target you want to reach.

    If whatever directory you're currently in isn't specified in the PATH environment variable it won't find it...
Results 1 to 25 of 52
Page 1 of 3 1 2 3