4 messages in net.java.dev.jna.usersC strings as out parameter
FromSent OnAttachments
Vito IngrassiaJul 12, 2007 3:19 am 
Wayne MeissnerJul 12, 2007 6:02 am 
Sébastien BratièresJul 12, 2007 8:33 am 
Timothy WallJul 12, 2007 11:41 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:C strings as out parameterActions...
From:Vito Ingrassia (v.in@iwbank.it)
Date:Jul 12, 2007 3:19:58 am
List:net.java.dev.jna.users

Hello,

I have this C function

int fill_data(char * str, int len)

whit this meaning: the buffer is allocated before calling the function and the size is len. Function C fills the buffer with data and returns the number of bytes filled in.

What's the right type mapping and use for this function? More In general how to manage C strings as parameters and return type?

thanks

Vito