50 #define INVALID_ROUTINE 40
51 #define VALID_ROUTINE 0
63 "Api_Read_All_Variables_From_REXX_VP",
64 "Api_Read_All_Elements_Of_A_Specific_Stem_From_REXX_VP"
91 for (j = 0; j < entries; j++)
128 for (j = 0; j < entries; j++)
166 strcpy(retstr->
strptr,
"0");
183 printf(
"ERROR: shvret is %x hex after var nr. %d \n",rc,i);
189 printf(
"Name of the variable from the Variable Pool: %s, Value: %s \n", prxshv->
shvname.strptr, prxshv->
shvvalue.
strptr);
191 printf(
"Name of the variable from the Variable Pool: %s, Empty\n", prxshv->
shvname.strptr);
209 strcpy(retstr->
strptr,
"Allocation error occured");
215 printf(
"ERROR: shvret is %x hex after var nr. %d\n",rc,i);
223 printf(
"Name of the variable from the Variable Pool: %s, Value: %s \n", prxshv->
shvname.strptr, prxshv->
shvvalue.
strptr);
225 printf(
"Name of the variable from the Variable Pool: %s, Empty\n", prxshv->
shvname.strptr);
254 SHVBLOCK *prxshv = &rxshv, *temp, *interim;
256 char array[20], value[10];
257 char pch[64], *result;
265 strcpy(retstr->
strptr,
"0");
268 strncpy(pch, args[0].strptr, 64);
272 prxshv->
shvname.strlength = strlen(pch);
279 strcpy(retstr->
strptr,
"ApiFETCH failed \n");
287 result = strrchr(pch, chars);
293 memset(array, 0x00,
sizeof(array));
294 memset(value, 0x00,
sizeof(value));
295 for (k = 1;k <= j; k++)
298 temp = temp->shvnext;
301 strcpy(retstr->
strptr,
"Allocation error occured");
306 sprintf(value,
"%d", k);
307 strcat(array, value);
308 temp->shvnext = NULL;
309 temp->shvname.strlength = strlen(array);
310 varName = malloc(strlen(array)+1);
311 strcpy(varName, array);
312 temp->shvname.strptr = varName;
313 temp->shvvalue.strptr = NULL;
323 strcpy(retstr->
strptr,
"Allocation error occured");
329 printf(
"ERROR: shvret is %x hex after var nr. %d\n",rc,k);
334 for (k = 1;k <= j; k++)
336 printf(
"Name of the Stem-variable from the Variable Pool: %s, Value: %s \n", temp->shvname.strptr,temp->shvvalue.strptr);
337 free((
void *)temp->shvname.strptr);
340 temp = temp->shvnext;
RexxReturnCode RexxEntry RexxVariablePool(PSHVBLOCK pshvblock)
RexxReturnCode REXXENTRY RexxDeregisterFunction(CONSTANT_STRING)
RexxReturnCode REXXENTRY RexxFreeMemory(void *)
RexxReturnCode REXXENTRY RexxRegisterFunctionDll(CONSTANT_STRING, CONSTANT_STRING, CONSTANT_STRING)
LONG REXXENTRY ApiLoadFuncs(PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
LONG REXXENTRY Api_Read_All_Variables_From_REXX_VP(PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
LONG REXXENTRY ApiDeregFunc(PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
LONG REXXENTRY Api_Read_All_Elements_Of_A_Specific_Stem_From_REXX_VP(PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
CONSTANT_RXSTRING shvname
struct _SHVBLOCK * shvnext