Back to index

im-sdk  12.3.91
Functions
zhuyin_test.c File Reference
#include <stdio.h>
#include "zhuyin_data.h"

Go to the source code of this file.

Functions

int do_dump (TZhuyinData *pZhuyinData)
int print_prompt ()
int do_search (TZhuyinData *pZhuyinData)
int main (int argc, char **argv)

Function Documentation

int do_dump ( TZhuyinData pZhuyinData)

Definition at line 47 of file zhuyin_test.c.

{
       printf("ZhuyinData_Print ====================\n");
       ZhuyinData_Print(pZhuyinData);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int do_search ( TZhuyinData pZhuyinData)

Definition at line 62 of file zhuyin_test.c.

{
}

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 66 of file zhuyin_test.c.

{
       TZhuyinData aZhuyinData;

       if (argc != 2) {
              printf("Usage:  %s [-dump] | [-search]\n", argv[0]);
              exit(-1);
       }

       ZhuyinData_Init("zhuyin.cfg", &aZhuyinData);
       ZhuyinData_Open(&aZhuyinData);

       if(!strcmp(argv[1], "-dump")) {
              do_dump(&aZhuyinData);
       } else {
              do_search(&aZhuyinData);
       }

       ZhuyinData_Free(&aZhuyinData);
}

Here is the call graph for this function:

int print_prompt ( )

Definition at line 53 of file zhuyin_test.c.

{
       printf("\n\nHow to search: \n");
       printf(" 1. Quit:  ! 1\n");
       printf(" 2. Change search properties, input:\n");
       printf("        @profess  num_phrase\n\n");
       printf("--> ");
}