Last change
on this file was
5908,
checked in by westram, 16 years ago
|
- source files with identical names are really a pain when using valgrind
|
File size:
600 bytes
|
Line | |
---|
1 | #include <stdio.h> |
---|
2 | #include <PT_com.h> |
---|
3 | #include <client.h> |
---|
4 | extern "C" { |
---|
5 | char *md2(void * object); |
---|
6 | } |
---|
7 | main(int argc,char ** argv) |
---|
8 | { |
---|
9 | int zw; |
---|
10 | T_PT_MAIN com; |
---|
11 | aisc_com *link; |
---|
12 | if(argc<3){ |
---|
13 | printf("syntax: %s <machine name> address\n", argv[0]); |
---|
14 | exit(1); |
---|
15 | } |
---|
16 | link = (aisc_com *)aisc_open(argv[1], &com, AISC_MAGIC_NUMBER); |
---|
17 | if (!link) { |
---|
18 | printf("cannot contact server\n", argv[0]); |
---|
19 | exit(1); |
---|
20 | } |
---|
21 | zw = atoi(argv[2]); |
---|
22 | if(!zw) zw = (int)com; |
---|
23 | printf("%s\n",md2((void *)zw)); |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.