Search:

Type: Posts; User: kuroholic

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,782

    THANK YOU IT WORKS NOW!!! I thought I was using...

    THANK YOU IT WORKS NOW!!! I thought I was using malloc wrong
  2. Replies
    3
    Views
    2,782

    help with malloc

    I'm trying to write a program that combines all command line arguments into one string.


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <assert.h>

    int main(int argc,...
  3. Replies
    7
    Views
    4,691

    ok I wrote something, but it still doesn't work ...

    ok I wrote something, but it still doesn't work


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    #define MAX_LINE 1024
    #define MAX_CHARACTER 128
  4. Replies
    7
    Views
    4,691

    thank you so much! I was messing around with my...

    thank you so much! I was messing around with my code, should've been != and not ==. I was going to use lineCount to count the total number of lines, is there a smarter way of doing it?
  5. Replies
    7
    Views
    4,691

    How can I do that? This is my code right now: ...

    How can I do that? This is my code right now:


    #include <stdio.h>
    #include <stdlib.h>

    #define MAX_LINE 1024
    #define MAX_CHARACTER 128

    int main(void) {
  6. Replies
    7
    Views
    4,691

    Counting unique lines/strings?

    Hi,

    Is there a way to count unique lines? So for example if I do this:

    ./count
    one
    two
    one
    one
    two
Results 1 to 6 of 6