Fix several warnings that appear in gcc 4.3.2.
[wvstreams.git] / utils / tests / dirnametest.cc
blob694c911c9c4ea7c754bc1d871059483d087b97d2
1 #include "strutils.h"
4 void test(WvStringParm s)
6 printf("'%s': '%s' -- '%s'\n",
7 s.cstr(), getdirname(s).cstr(), getfilename(s).cstr());
11 int main()
13 WvString a("/tmp"), b("frog"), c("frog/bog/blog"), d("%s/", c),
14 e("%s//", d), f("%s/zot", e), g(""), h("/big/fat/file");
16 test(a);
17 test(b);
18 test(c);
19 test(d);
20 test(e);
21 test(f);
22 test(g);
23 test(h);