File: sctest.c

package info (click to toggle)
pact 980714-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 13,096 kB
  • ctags: 26,034
  • sloc: ansic: 109,076; lisp: 9,645; csh: 7,147; fortran: 1,050; makefile: 136; lex: 95; sh: 32
file content (42 lines) | stat: -rw-r--r-- 978 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * TEST.C - test for SCORE stuff
 *
 * Source Version: 2.0
 * Software Release #92-0043
 *
 */

#include "cpyright.h"

#include "score.h"

/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/

/* MAIN - test stuff */

main()
   {char s[MAXLINE], t[MAXLINE], *token;
    long count;

    strcpy(s, "foo bar blat");
    strcpy(t, "tarfu");

    token = SC_firsttok(s, " ");
    token = SC_firsttok(s, " ");
    token = SC_firsttok(s, " ");
    token = SC_firsttok(s, " ");
    token = SC_firsttok(s, " ");

    token = SC_firsttok(t, " ");
    token = SC_firsttok(t, " ");

    token = FMAKE_N(char, 10, "MAIN:token");
    REMAKE_N(token, char, 20);
    count = SC_arrlen(token);
    SFREE(token);

    exit(0);}

/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/