On Tue, Jul 11, 2006 at 02:38:56PM -0500, fvwm-workers wrote: > CVSROOT: /home/cvs/fvwm > Module name: fvwm > Changes by: domivogt 06/07/11 14:38:56 > > Modified files: > . : ChangeLog > fvwm : schedule.c > > Log message: > * Fixed parsing of "Periodic" option.
Some hints for using the parsing functions: - char *PeekToken(char *in, char **next) Takes the input string "in" and returns a pointer to the token, stored in a static char array. The pointer is invalidated by the next call to PeekToken. If "next" is not NULL, the pointer to the first character after the token is returned through *next. (Note that next is a char **, not just a char *). - char* GetNextToken(char *in, char **token) Works similary, but: Returns "next" and stores the token in *token (I know this is confusing). The memory *tokes is allocated with malloc and the calling function has to free() it. If possible, use PeekToken because it's faster and does not risk creating memory leaks. Note that both functions never return an empty token, i.e. a string that consists just of the terminating zero. Ciao Dominik ^_^ ^_^ -- Dominik Vogt, [EMAIL PROTECTED]
signature.asc
Description: Digital signature