1#include <assert.h>2#include <stdio.h>3#include <string.h>45/*6output:7testing8done9end:10*/1112int13main()14{15 char buf[40];16 size_t n;1718 puts("testing");1920 assert(strxfrm(buf, "test", 40) == 4);21 assert(strxfrm(buf, "", 0) == 0);22 assert(strxfrm(NULL, "abc", 0) > 0);2324 puts("done");2526 return 0;27}