test_getdomainname_dynamic.c (247B)
1 #include "common.h" 2 3 #define _GNU_SOURCE 4 5 #include <unistd.h> 6 7 int main(int argc, char** argv) { 8 char buffer[8] = {0}; 9 10 getdomainname(buffer, 6); 11 12 CHK_FAIL_START 13 getdomainname(buffer, argc); 14 CHK_FAIL_END 15 16 puts(buffer); 17 return ret; 18 }