|
-
September 19th, 2002, 11:32 PM
#2
It's been a while since I have had to return pointers from functions, and the classes I teach don't use pointers (they're covered in later courses), but, if I remember right, you should be able to do:
[CODE[loc =strchr(buf, ch);[/CODE]
You can only do this, however, if you have delcared loc as a pointer, not as a character. If I'm wrong on that (sorry, I use pointers quite a bit in projects, but I never return them because I work more with various types of lists, etc.), I apologize and hopefully someone will clarify it. I'll look it up when I get off campus today.
AJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|