[asterisk-dev] 0006889: [patch] Convert ast_verbose into macros

Andrey S. Pankov casper at casper.org.ua
Thu Apr 6 15:54:06 MST 2006


Tilghman:

#include <stdio.h>

int main(void) {
        static int warned = 0;

        if (!warned++) {
                printf("Was not warned!\n");
        }

        if (!warned++) {
                printf("Was not warned!\n");
        }

        return 0;
}

Run this! Your first example is not a problem...

Nor is the second:

printf("%s\n", (char *)0);

That will be a feature of app_db to indicate that keytree=(null).

casper



More information about the asterisk-dev mailing list