1 #include <stdio.h> 2 #include <string.h> 3 4 int main(int argc, char **argv) { 5 char buf[10]; 6 strlcpy(buf, "foo", sizeof buf); 7 return 1; 8 } 9