1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/* $Id: Pvmfgetinst.c,v 1.2 1998/09/21 20:26:04 pvmsrc Exp $ */
#ifdef WIN32
#include "..\..\include\pvm3.h"
#include "..\..\src\pvmwin.h"
#else
#include "pvm3.h"
#endif
#include "pvm_consts.h"
#ifdef IMA_WIN32_WATCOM
#include "watforstr.h"
void pvmfgetinst (group_str, tid, inum)
WatcomFortranStr* group_str;
int *inum, *tid;
{
char* group_ptr = group_str->strP;
int group_len = group_str->len;
#else
void __stdcall
PVMFGETINST (group_ptr,group_len, tid, inum)
char * group_ptr; int group_len;
int *inum, *tid;
{
#endif
char tgroup[MAX_GRP_NAME + 1];
/*
* Copy the group name to make sure there's
* a NUL at the end.
*/
if (ftocstr(tgroup, sizeof(tgroup), group_ptr, group_len)){
*inum = PvmBadParam;
return;
}
*inum = pvm_getinst(tgroup, *tid);
}
|