Your sparse_fd variable should be used to initialize the
PointerByReference, and you should update sparse_fd from
PointerByReference.getValue() after a call to change_to_next_files.
But how will be the prototype of both functions?
void bunch_of_ray(PointerByReference sparse_fd)?
or
void change_to_next_file(PointerByReference sparse_fd)?
Thanks
Hello,
I've read that if therer's a File * in C, it's replaced by a Pointer
in Java.
My C program is like that:
File * sparse_fd;
bunch_of_ray(sparse_fd); (the prototype is: void bunch_of_ray(File
*f)
change_to_next_files (&sparse_fd); (the prototype is void
change_to_next_files(File ** a)
I don't know how to declare sparse_fd. If is was used just as a File
*, I'd have declared it as a Pointer, and if it was just used as a
File ** (with &sparse_fd) I'd have declared it as a
PointerByReference (I think). But as it's used as both File * and
File **, I don't know what to do.
Thanks.
Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente.