[BusyBox] Improved comments for bb_getopt_ulflags
Vladimir N. Oleynik
dzo at simtreas.ru
Fri Dec 10 14:34:47 UTC 2004
Tito,
> char *pointer_to_arg_for_a=NULL;
> flags = bb_getopt_ulflags(argc, argv, "a:b:c:d:",
> &pointer_to_arg_for_a,
> &pointer_to_arg_for_b,
> &pointer_to_arg_for_c,
> &pointer_to_arg_for_d);
In this case initialization is not required.
But required for GNU getopt a extension "::"
char *pointer_to_arg_for_a=NULL;
char *pointer_to_arg_for_b;
flags = bb_getopt_ulflags(argc, argv, "a::b:",
&pointer_to_arg_for_a,
&pointer_to_arg_for_b);
> llist_t *patterns=NULL;
> as returned by *llist_add_to(llist_t *old_head, char *new_item).
> WARNING: this pointer MUST be always initializated to NULL.
This statement is too hard.
llist_t type must be always initializated (fundamentally), if empty, then to NULL.
--w
vodz
More information about the busybox
mailing list