home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
VOGLE.ZIP
/
SRC
/
SUNPAS
/
PGETSTR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-27
|
347b
|
27 lines
#include <stdio.h>
#include "vogle.h"
/*
* This should match the Pascal type 'varying [n] of char'
*/
typedef struct {
int n;
char s[1]; /* SO compiler doesn't bitch about zero length */
} Vstring;
/*
* GetString
*/
int
GetString(bcol, s)
int bcol;
Vstring *s;
{
char *p = (char *)s->s;
s->n = getstring(bcol, p);
return (s->n);
}