Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <bsd/string.h>
int main() {
char error[100];
char test[10];
test[0] = '\0';
strlcpy(error, test, sizeof(error));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment