1 |
/* $Id$ */ |
/* $Id$ */ |
2 |
#include <stdio.h> |
#include <stdio.h> |
3 |
|
#include <stdlib.h> |
4 |
#include <string.h> |
#include <string.h> |
5 |
#include "GLOBALS.h" |
#include "GLOBALS.h" |
6 |
#include "DD.h" |
#include "DD.h" |
54 |
|
|
55 |
/* Now set values that are not NULL */ |
/* Now set values that are not NULL */ |
56 |
dd[ddCurrent].name = strdup(rec->name); |
dd[ddCurrent].name = strdup(rec->name); |
57 |
|
|
58 |
|
/* CNH Debug starts */ |
59 |
|
printf("ddAdd name=\"%s\", rec. no. = %d\n",rec->name,ddKey+1); |
60 |
|
|
61 |
|
/* CNH Debug ends */ |
62 |
|
|
63 |
|
|
64 |
if ( dd[ddCurrent].name == NULL ) return((ddRecord *)NULL); |
if ( dd[ddCurrent].name == NULL ) return((ddRecord *)NULL); |
65 |
dd[ddCurrent].id = ddKey+1; |
dd[ddCurrent].id = ddKey+1; |
66 |
dd[ddCurrent].key = strdup(ddkey(ddKey+1)); |
dd[ddCurrent].key = strdup(ddkey(ddKey+1)); |