As a previous instructor, I used K&R's book for a number of years. I have yet to find an upper level language that is as fast as straight C, except assembler. Want to be a good programmer, learn the hardware via an assembler or view the assembler listing of your C compiler (which may be...
Try looking up array manipulations (maybe under array translation) in an advanced algebra, calculus or statics & dynamics text book. They should give you some good manipulation techniques for that application. There is a name for it, but it escapes me at the moment and I can't remember, but I...
You may want to follow the previous advise since you also have:
if (hinstLib = NULL) return 101;
When I worked at a large institution I got to write the coding rules and the NULL was ALWAYS on the left (unless an assignment was going on).
So rewrite it properly and it should work!
Seems to me the best way is to pass a pointer to the structure where any part of it can be accessed. Unless you are in "most obfuscate C" competition, I would call it something clear and simple. You know you are creating a user, so call it (the structure) "usr", since it isn't a username. Also...
I don't know how large or potential to hacking your program is, but I have found that you write your own function, using something like getchr, you control what comes in and where it goes and you can just stop it at the length of the buffer -1 (if using a fixed buffer ensuring a null ending...
Hi just thought I'd throw in a comment. I agree with "Norway2" in both points, but will assume that cast had been previously defined or I would expect any compiler to gag on it. BTW are you sure of the ACTUAL error line? I started programming in the mid 70's and some things are not what they...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.