Search:

Type: Posts; User: turmoil

Search: Search took 0.00 seconds.

  1. Hey thanks man. I'm supprised it takes such an...

    Hey thanks man. I'm supprised it takes such an effort to achieve that result, but hey, if it works... Well, I know it works, I just tried it. :-)

    Thanks again.
  2. removing a single string/line from a text file

    Hi

    I have a text file containing one string on each line. My problem is I want to surgically remove just one line (or one string - same thing) without leaving a blank line.
    ie, if I had the...
  3. Replies
    3
    Views
    2,377

    Hey thanks a lot. Your reply confused me for a...

    Hey thanks a lot. Your reply confused me for a while ( i just learnt the meaning of a 'fork bomb'...twice actually.), but now I'm getting it sorted. Well, mostly anyway. I'm able to connect...
  4. Replies
    3
    Views
    2,377

    Problem using sockets for multiple clients

    Hi,
    I'm a bit of a newbie and in getting this far I have exhausted all the online socket tutorials I could find.

    Here's my problem:
    I have a server and a client. They connect happily. Once. ...
  5. hey thanks heaps quzah! That's all i needed. :)...

    hey thanks heaps quzah! That's all i needed. :)

    (Can't use isdigit as i'm looking for specific numbers.)

    cheers,
    tumoil
  6. eeer yeah . whoops. count is what i'm using in...

    eeer yeah . whoops. count is what i'm using in my actual code, so i got a little distracted making that example....

    so i meant:



    for ( i=0 ; i<stringlength ; i++){
    if ( string[i]==1...
  7. newbie question - checking if a char array stores a number.

    Hi
    Yeah, it sounds like a strange thing to do " checking if a char array stores a number", and your probably wondering why there'd be a number there anyway. Well, trust me, there is a reason.
    ...
  8. Replies
    3
    Views
    7,328

    Functions returning char arrays

    Hi,
    now i have a most confusing problem. I have a function that returns a string (actually i have a number of them), and i want to store this string in another char array. My first thought was to...
  9. Replies
    8
    Views
    1,284

    Ok, thanks for reading it, but after much...

    Ok, thanks for reading it, but after much frustration i've managed to solve it myself. :) I used
    if ( strncmp ( current->data , word , n ) == 0 )

    where n = 20.
    I found if n was small i lost...
  10. Replies
    8
    Views
    1,284

    One more question please, and a much more basic...

    One more question please, and a much more basic one too.

    I'm now trying to compare a word to the words in the linked list. I have no problems traversing the list or anything, but i can't figure...
  11. Replies
    8
    Views
    1,284

    a/s/l? Marry me? Seriously, thanks heaps. ...

    a/s/l?

    Marry me?

    Seriously, thanks heaps. I looked at that and thought it couldn't possibly work. Guess that's why i was stuck though. I don't understand at all how it works though -...
  12. Replies
    8
    Views
    1,284

    Hmmm... I don't understand. :confused: I've...

    Hmmm... I don't understand. :confused:

    I've tried playing around with the things you mentioned, but i'm not getting anywhere with it.

    I want a single startPtr to point to the first line stored...
  13. Replies
    8
    Views
    1,284

    Segmentation fault?! Please help!!!

    Hi all. I'm a hopelessly stuck C newbie. I'm trying to make a program that will read one line at a time from a file, and store each line as a char array in a singly linked list. I'm now totally...
Results 1 to 13 of 13