How do you write to a Binary File, compared to an Ascii file?
Type: Posts; User: EvilBaby
How do you write to a Binary File, compared to an Ascii file?
I don't suppose anybody had an example or a tutorial on how to use htonl and htons?
ok thanks.
I'm doing this assignment and one question is
name socket using wildcards.
What exactally is this question? I'm sorry if this sounds stupid but I have no idea what is meant by 'wildcards'.
it is when you were tyring to do it the way I originally thought I had to. See I'm new at this so I started off by going to the last element, free, that, then go through the list to the last element...
thanks for the help
just out of curiosity should this work
while (current != NULL)
{
if (current->next != NULL)
{
temp = current->next;
damn, my link list is 45 000 + links, this is gonna take a while
To free the memory of a link list so I have to travel though each node and free it?
no I'm on linux redhat 9.0
The reason I don't have error checking is because I'm just trying to get some basics out of the way. I will put it in but later.
arrrgg,
The file does exist but I'm limited to what compiler I'm allowed to use because it has to be able to run on the school lab computers.
uhhh, I'm // has been working fine for me, I...
Is it good for gdb to run successfully but not your program?
For some reason I am getting a seg fault with my malloc and it is really annoying.
Sorry if its bad code but I'm just learning...
Thanks for the interest in helping but I just found it.
I had int line[1] in my code for some reason. GRRRRR
anywho I'm dropping the array idea and moving on to pointers.
I am trying to copy the contents of a Link List into an Array
{
of_wrds[cnt-newline][41];
line[cnt-newline];
flag[cnt-newline];
current = head;