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
Type: Posts; User: rupurt
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
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...
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...
alright thanks guys i just initialized the part of the structure im comparing to NULL and it solved the problem :)
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...
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
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...
hi sorry to ask such a basic question but what does the ? character do in c?