X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fccan_tokenizer%2F_info;h=ee1477a9c31d6dc16359b0dabd54a13b9a4700d4;hb=e7e57cbf6725debd99238ccd8e3bf273a8d7e61c;hp=aef90fb91065e94097084718df66b782bc685b91;hpb=291237b4fed863be74051274ac5ad9920cb33cc3;p=ccan diff --git a/ccan/ccan_tokenizer/_info b/ccan/ccan_tokenizer/_info index aef90fb9..ee1477a9 100644 --- a/ccan/ccan_tokenizer/_info +++ b/ccan/ccan_tokenizer/_info @@ -11,7 +11,7 @@ * Example: * * #include - * #include + * #include * #include * * static void token_list_stats(const struct token_list *tl) { @@ -48,7 +48,6 @@ * } * * int main(int argc, char *argv[]) { - * size_t len; * char *file; * struct token_list *tl; * tok_message_queue mq; @@ -59,12 +58,12 @@ * fprintf(stderr, "Usage: %s source_file\n", argv[0]); * return 1; * } - * file = grab_file(NULL, argv[1], &len); + * file = grab_file(NULL, argv[1]); * if (!file) * err(1, "Could not read file %s", argv[1]); * * //tokenize the contents - * tl = tokenize(file, file, len, &mq); + * tl = tokenize(file, file, strlen(file), &mq); * * //print warnings, errors, etc. * while (queue_count(mq)) {