~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to olb/dumpav.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
extern "C" {
 
2
#include "online.dcl"
 
3
}
 
4
 
 
5
void main(int argc, char **argv)
 
6
{
 
7
        CHAR found, passage[64], *p;
 
8
        int i, j;
 
9
        INT word;
 
10
        short verse_list[MAX_LIST];
 
11
        short versedata[MAX_VERSE];
 
12
        char data[MAX_DATA];
 
13
        extern struct zonline online;
 
14
        int versenum = 0;
 
15
 
 
16
        
 
17
        if (argc > 1)
 
18
                call DOINIT(argv[1]);   /* initialise system */
 
19
        else    call DOINIT("g:\\bible\\av");   /* initialise system */
 
20
 
 
21
        for (versenum = 23146; versenum <= 23147 /*31102*/; versenum++) {
 
22
                call GETEXT(versenum, versedata, 1, 1, 1, 1);
 
23
                call BLDVERSE(versedata, data);
 
24
                printf("%s\n", VRSTOREF(versenum, 1));
 
25
//              printf("%s\n", data);
 
26
        }
 
27
 
 
28
        DOEND();
 
29
}
 
 
b'\\ No newline at end of file'