projects
/
YACASL2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
文字列を逆順にするstrrev関数を定義
[YACASL2.git]
/
test
/
unit
/
strrev
/
cmd.c
1
#include <stdio.h>
2
#include "cmem.h"
3
4
int main()
5
{
6
char *src[] = {"abcdefghij", "abcde"};
7
char *dst = NULL;
8
9
for(unsigned i = 0; i < ARRAYSIZE(src); i++) {
10
dst = strrev(src[i]);
11
puts(dst);
12
FREE(dst);
13
}
14
return 0;
15
}