diff options
author | Omar Polo <op@omarpolo.com> | 2024-06-06 13:43:12 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-06-06 13:43:12 +0000 |
commit | 848189f10a98768b372186de8b9fe013ad49d4e5 (patch) | |
tree | e2d451bf4bbc6ac51e0ea98f1ad9cd409f408aa8 /have | |
parent | 1bc73c3bcbd85e2682afca36595ea44a75345e65 (diff) |
attempt to deal with the portability fiasco of strnvis(3)
Diffstat (limited to 'have')
-rw-r--r-- | have/broken-strnvis.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/have/broken-strnvis.c b/have/broken-strnvis.c new file mode 100644 index 0000000..f2a9a59 --- /dev/null +++ b/have/broken-strnvis.c @@ -0,0 +1,15 @@ +/* + * public domain + */ + +#include <stdio.h> +#include <stdlib.h> +#include <vis.h> + +int +main(void) +{ + char buf[128]; + + return strnvis(buf, sizeof(buf), "Hello, world!\n", 0); +} |