1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#include <stdio.h> #include "dk4exep8.h" $!trace-include int main(int argc, char *argv[]) { char buf[256]; dk4_er_t er; $!trace-init test-dk4exep8.deb" $? "+ main" dk4error_init(&er); if (0 != dk4execpath_c8(buf, sizeof(buf), argv[0], &er)) { printf("%s\n", buf); } else { printf("ERROR: Not found!n"); } $? "- main" $!trace-end return 0; }