FROM : Philip Bridson
DATE : Sun Apr 20 19:17:37 2008
Hi There,
Is there anyway to pass a C string from a Obj-C class to a C function
as an argument? I know that I can use pointers to the string but it
gets a bit messy as I am using pointers in the C function to
manipulate the string. I also could put it in C++ and it would work
but I'm trying to avoid that. I want a function that is portable and
so it can't be written in Obj-C.
I'm sorry if this is really basic but I don't normally use C very much.
Many thanks,
Phil.
DATE : Sun Apr 20 19:17:37 2008
Hi There,
Is there anyway to pass a C string from a Obj-C class to a C function
as an argument? I know that I can use pointers to the string but it
gets a bit messy as I am using pointers in the C function to
manipulate the string. I also could put it in C++ and it would work
but I'm trying to avoid that. I want a function that is portable and
so it can't be written in Obj-C.
I'm sorry if this is really basic but I don't normally use C very much.
Many thanks,
Phil.
| Related mails | Author | Date |
|---|---|---|
| Philip Bridson | Apr 20, 19:17 | |
| Clark Cox | Apr 20, 19:33 | |
| Jens Alfke | Apr 20, 20:39 | |
| William Squires | Apr 21, 04:06 |






Cocoa mail archive

