Search:

Type: Posts; User: nizbit

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,700

    Did what you said and no luck.

    Did what you said and no luck.
  2. Replies
    6
    Views
    1,700

    Have to use tmpnam.

    Have to use tmpnam.
  3. Replies
    6
    Views
    1,700

    program hangs after execution

    This program will generate a list of temporary filenames using linked lists.I dont get an error when I compile, but when I execute it just hangs. This is my code:


    #include <stdio.h>
    #include...
  4. Replies
    8
    Views
    1,839

    I stepped a way for while and then it hit me like...

    I stepped a way for while and then it hit me like a ton of brick as what you were saying about the data ending with a '\n'. I thank you for your patience and help.
  5. Replies
    8
    Views
    1,839

    Adding *x = '\0'; coredumps. The last field ends...

    Adding *x = '\0'; coredumps. The last field ends with '\n' doesn't explain why s->curr is not getting its data.
  6. Replies
    8
    Views
    1,839

    My latest code, which I don't think has changed...

    My latest code, which I don't think has changed from the first post:


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

    int main () {

    struct stuinfo {
  7. Replies
    8
    Views
    1,839

    I add the *x = '\0'; before the strcpy and I get...

    I add the *x = '\0'; before the strcpy and I get a coredump.
  8. Replies
    8
    Views
    1,839

    Data missing in variable

    I'm willing to bet everyone is sick of me :D . Data is missing or being passed over for the variable s->curr. I'm sending all the data to an output file and don't see s->curr being printed. I'm...
  9. Replies
    4
    Views
    1,798

    I got the code working but I'm missing the curr...

    I got the code working but I'm missing the curr value. Its missing from the output file.
  10. Replies
    4
    Views
    1,798

    I modified my code to what you suggested and my...

    I modified my code to what you suggested and my output file looks like this:


    0 - 0- 0 0
    0 - 0- 0 0
    0 - 0- 0 0
    0 - 0- 0 0
    0 - 0- 0 0
  11. Replies
    4
    Views
    1,798

    Looping when outputting to a file

    I'm sure its a problem of where the statement are located in my while loop, but all that gets inputted in my ouput file is the persons ssn. Now the ssn is on the line it should be. The input...
  12. Replies
    6
    Views
    1,236

    Cool, thanks!!!

    Cool, thanks!!!
  13. Replies
    6
    Views
    1,236

    I understand that but I need to put "slappy" in...

    I understand that but I need to put "slappy" in about 30 spaces to the left of the margin of the file that fp points to.
  14. Replies
    6
    Views
    1,236

    Question about fputs

    With fputs, is there a way to adjust where its puts the data? I need to put data in a column in another file.
  15. Replies
    3
    Views
    1,886

    Thanks!

    Thanks!
  16. Replies
    3
    Views
    1,886

    Output file contains extra data

    When I look at my output file to my program the ssn has the first 3 numbers printed, then the whole social printed after it so it looks like:


    234-24367-8765


    I can't see where I went wrong. ...
  17. Replies
    7
    Views
    1,373

    Or troll around 323 threads for 2 hours when...

    Or troll around 323 threads for 2 hours when someone has exactly what I needed- go figure ;) . Thanks for your help eveyone!
  18. Replies
    7
    Views
    1,373

    I'm aware of keyword searches. I just figured...

    I'm aware of keyword searches. I just figured someone(thanks sand_man!!) had a quick link.
  19. Replies
    7
    Views
    1,373

    Hmmm, strtok(). Unaware of that function. ...

    Hmmm, strtok(). Unaware of that function. Anyone might have an example on how its used?
  20. Replies
    7
    Views
    1,373

    Dumping fields into variables

    I have a file that we are supposed to use as input. It looks like this:


    name:curriculum:gradyear:ssn:dob


    I'm going to read it in a buffer, but trying to find the logic to seperate the...
  21. Replies
    8
    Views
    5,056

    Cool thanks!

    Cool thanks!
  22. Replies
    8
    Views
    5,056

    Ok made a booboo with EOF. It can't look for EOF...

    Ok made a booboo with EOF. It can't look for EOF in data. Thats big faq to memorize everything, but thanks for showing me. The only prolem I have left is when I do:


    [academ] $ wc d5.dat
    ...
  23. Replies
    8
    Views
    5,056

    Ok I figured out what I needed to do, but I get a...

    Ok I figured out what I needed to do, but I get a coredump when I run in UNIX. In Windows, under bloodshed, the executable runs fine. I think the character count is off, but that shouldn't cause a...
  24. Replies
    8
    Views
    5,056

    Ok I see what your saying.

    Ok I see what your saying.
  25. Replies
    8
    Views
    5,056

    The contents of d5.dat: Isn't counting...

    The contents of d5.dat:





    Isn't counting lines fun....

    You should
    see some interesting results.
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4