Hi, Carlos R. Mafra wrote:
+/* + * this function splits a given string at the comma into tokens + * and set the wVisualID variable to each parsed number + */ +static int initWVisualID(const char *user_str) +{Sorry if this is too stupid to ask, but do you know about wtokensplit() and wtokennext() from WINGs/strings.c ? Perhaps they could be used here? (probably wtokennext() would need to be modified to be comma-aware too)
I wasn't aware of these functions. I thought about using strtok but the usage is discouraged. I will update the patch to use these functions if possible, thanks for the hint. BTW, I did try to use wstrdup (and similiar functions) but the arguments are "char*" instead of "const char*". Any reason for this?
Best Regards, Ralf Hoffmann -- To unsubscribe, send mail to [email protected].
