Re: How to wrap void strcpy( char *dest, c onst char *src ) (was: Array return argument with typemap s)

"Alberto Luaces" <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <[email protected]>
Hello,

I think I can simplify my problem to just this: if strcpy() didn't return a pointer and just returned a string copy in *dest, how could that function be wrapped?

The length of the string is not known until *src is parsed  (using strlen(), for example).

/* returns a copy of src in dest */
void strcpy( char *dest, const char *src );

-- 
Alberto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.