src/oneShot/test/test.c 1.34
1.34 2009/02/10 22:10:19 kent
Testing some fool thing.
Index: src/oneShot/test/test.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/oneShot/test/test.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -b -B -U 1000000 -r1.33 -r1.34
--- src/oneShot/test/test.c 28 Jul 2006 21:05:51 -0000 1.33
+++ src/oneShot/test/test.c 10 Feb 2009 22:10:19 -0000 1.34
@@ -1,47 +1,33 @@
/* test - Test something. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "dnautil.h"
#include "xp.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"test - Test something\n"
"usage:\n"
" test a \n"
"options:\n"
);
}
-struct refString
- {
- int refCount;
- int type;
- char *s;
- int size;
- int alloced;
- bool isConst;
- };
-struct refString refString = {0, 0, "Hello world", 11, 11, TRUE};
-
-void test(char *word, char *line)
+void test(char *word)
{
-boolean isSame = startsWithWord(word, line);
-printf("'%s' %s first word of '%s.'\n", word,
- (isSame ? "is" : "isn't"), line);
+printf("%d\n", word[0]);
}
int main(int argc, char *argv[], char *env[])
/* Process command line. */
{
-int i;
-if (argc != 3)
+if (argc != 2)
usage();
-test(argv[1], argv[2]);
+test(argv[1]);
return 0;
}