| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#define FORMAT advsys |
| 11 |
#define HOME_PAGE "http://www.ifarchive.org/if-archive/programming/advsys/" |
| 12 |
#define FORMAT_EXT ".dat" |
| 13 |
#define NO_METADATA |
| 14 |
#define NO_COVER |
| 15 |
|
| 16 |
#include "treaty_builder.h" |
| 17 |
#include <ctype.h> |
| 18 |
#include <stdio.h> |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
static int32 get_story_file_IFID(void *story_file, int32 extent, char *output, int32 output_extent) |
| 24 |
{ |
| 25 |
|
| 26 |
if (story_file || extent) { } |
| 27 |
ASSERT_OUTPUT_SIZE(8); |
| 28 |
strcpy(output,"ADVSYS-"); |
| 29 |
return INCOMPLETE_REPLY_RV; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
static int32 claim_story_file(void *story_file, int32 extent) |
| 38 |
{ |
| 39 |
char buf[7]; |
| 40 |
int i; |
| 41 |
if (extent >=8) |
| 42 |
{ |
| 43 |
for(i=0;i<6;i++) |
| 44 |
buf[i]=~(((char *)story_file)[i+2]+30); |
| 45 |
buf[6]=0; |
| 46 |
if (strcmp(buf,"ADVSYS")==0) return VALID_STORY_FILE_RV; |
| 47 |
} |
| 48 |
return INVALID_STORY_FILE_RV; |
| 49 |
} |