Passing a C String as an argument
Passing a C String as an argument
- Subject: Passing a C String as an argument
- From: Philip Bridson <email@hidden>
- Date: Sun, 20 Apr 2008 18:17:37 +0100
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.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden