Search:

Type: Posts; User: rupurt

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    14,559

    printf wont print without newline

    for some reason printf and fputs wont print a line unless it contains a newline at the end of it?

    is there anyway to force it to print
  2. Replies
    7
    Views
    1,149

    ok so i went backe and changed the structure to...

    ok so i went backe and changed the structure to only point to the array with



    stuct history_entry history[10][100];

    struct history_entry *historyptr;


    but how do i assign the...
  3. Replies
    7
    Views
    1,149

    pointint to an array from within a structure

    alright i seem to have hit a brick wall with all the errors im getting on this one.

    what i want to do is point to my multidimensional array history in the structure and pass this around to various...
  4. Replies
    4
    Views
    956

    alright thanks guys i just initialized the part...

    alright thanks guys i just initialized the part of the structure im comparing to NULL and it solved the problem :)
  5. Replies
    4
    Views
    956

    comparing memory spaces. is it possible?

    hi guys i want to do the following code but it wont work



    if(history[0][1] == NULL)
    printf("this worked");


    basically what i want it to do is if the array history[0][1] has nothing in...
  6. Thread: flushing arrays

    by rupurt
    Replies
    1
    Views
    821

    flushing arrays

    hello again!

    i have a problem with strings where when i call


    read(sockfd, line, MAXLINE)

    it keeps what was in line before. so when i print line the first time for example it comes out with
  7. Replies
    8
    Views
    194,128

    how to remove newline from a string

    hi people.

    i tried looking for a function that chops the newline off of a string but couldnt find one :( so i went about writing my own function to do it.

    here is the code


    /* removes the...
  8. Replies
    3
    Views
    1,781

    what does ? character mean?

    hi sorry to ask such a basic question but what does the ? character do in c?
Results 1 to 8 of 8