Search:

Type: Posts; User: phatsam

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    2,085

    Woah, that's nice and clean. Thanks...

    Woah, that's nice and clean.
    Thanks SlyMaelstrom.

    And yeah, I will go with what Dave posted, but I just wanted to finish my own fuction for learing purposes :)

    Thanks for now.
  2. Replies
    9
    Views
    2,085

    Thank you all for your quick reply and pointers!...

    Thank you all for your quick reply and pointers!

    I've updated the code and it works very well.. almost.



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
  3. Replies
    9
    Views
    2,085

    Help with my function (Heh)

    This code splits 'source' into tokens of nick, ident and host.
    It works and compiles without errors (using gcc -W -Wall).

    However, if i change the *source to...
  4. Replies
    6
    Views
    1,206

    Yeah I've tried that, but that gives me $...

    Yeah I've tried that, but that gives me


    $ gcc -W -Wall ptr_explode.c -o ptr_explode
    ptr_explode.c: In function `ptr_explode':
    ptr_explode.c:25: warning: return makes integer from pointer...
  5. Replies
    6
    Views
    1,206

    Help with a function (ptr_explode)

    Im trying to make a function that will split the words (like perl's split and php's explode), but im getting a couple of errors which I don't understand.

    Errors:
    $ gcc -W -Wall ptr_explode.c -o...
  6. Replies
    6
    Views
    3,031

    Alright, thanks guys.

    Alright, thanks guys.
  7. Replies
    6
    Views
    3,031

    Create something like php's explode()

    Hi again.

    I'm trying to make something that will behave somewhat like php's explode(), but im failing to do so.

    Here's what I got so far:


    #include <stdio.h>
    #include <string.h>
  8. Replies
    7
    Views
    11,531

    Ah, ofcourse! Thanks man

    Ah, ofcourse!

    Thanks man
  9. Replies
    7
    Views
    11,531

    Hrm, for some reason that doesn't work here; ...

    Hrm, for some reason that doesn't work here;


    #include <stdio.h>

    int main()
    {

    char string[] = "randomtext";
    char string_bit;
Results 1 to 9 of 9