Shouldn’t have posted but too late now. So The file not opening was prob due to parentheses in wrong place, and the hang was after the opening of the file. Also, is there any change in the program’s behavior? Please visit this page to clear all LQ-related cookies. Hi, guys, This thing is much easier to do in perl Thanks, I don’t know why I used strdup I wrote this quite a while ago Linked list? I’m guessing that this means that when I use fopen I can say “rw” instead of just “r” or “w”, if this is the case I’m sorry, but I didn’t know that, to say I “enjoy” this!
If it is not equal to the number of matches you expect, you can’t use values “returned”. I don’t know why this would be happening, except that the very first line of your example code looks slightly odd: If you need to reset your password, click here. In addition, it’s useful to reduce example code before submitting questions, by deleting extraneous bits; this could have been reduced to a five-line example easily. Maybe if it did work I could put it on the todo list. Thu Aug 14,
Having a problem logging in? To accomplish what you want, you will need to declare a char output[x] buffer, where x is at least the maximum number of digits you expect in your random number, and then use snprintf to write the output of rand to this buffer. A more clear code would be Code: The practical differences in this case are few, but in general file pointers are more portable. Maybe if it did work I could put it on the todo list What causes the main fopn is a bunch of errors, and you do need to warning assignment makes pointer from integer without a cast fopen all of them.
Sep 28, Posts: I believe you require a format statement ie. I’m sorry if I gave you the impression my post was directed at you; it wasn’t.
passing arg 1 of ‘fputs’ makes pointer from integer without a cast
Sun Dec 05, 3: They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Thanks, but close doesn’t do it. Fri Dec 03, 3: That was what was wrong.
Shouldn’t have posted but too late now. Originally posted maks hanser: The long list contains these types of formatting challenges; entry with 1 or more hypens before the version in digits, up to 3 or 4 entries with “[[: Hii have warning assignment makes pointer from integer without a cast fopen collection of html element to render the outputand i wanna change element tag for eg h2 tag to h4 and then send to But assugnment just on warning on 32 bit Linux or other architectures where a pointer and integer are more compatible.
Did it indicate a line number?
passing arg 1 of ‘fputs’ makes pointer from integer – Software Development | DaniWeb
Thu Dec 02, 4: This is a simple little task which I’m sure is easier in perl, which in time I will try out. This causes problems when you loop through the array, and let a zero pointer indicate the end. I suggest either using exclusively file descriptors opencloseintdgerwriteor file pointers fopenfclosegetcputc.
I am a given a task to include these libraries to execute a program similar to this one. Thanks for stating this again.
As matmatmat pointed out, you should consider reading in the contents of your file into some sort of container. That was just an error by copy-paste.