----- Original Message -----
From: Charles Rezsonya <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Segunda-feira, 13 de Dezembro de 1999 12:27
Subject: Unique ID (sysGetROMToken)


> retval = SysGetROMToken (0, sysROMTokenSnum, (BytePtr*) &bufP, &bufLen);


try it:

retval = SysGetROMToken (0, sysROMTokenSnum, (BytePtr*) &bufP, &bufLen);
bufP [bufLen] = '\0';


>
> gives me the ID of the unit.  but since it doesn't null terminate it i get
> extra characters in the variable.  how can i terminate it and have it
moved
> to other variables for me to manipulate it with?  i try a strcopy but all
> char's after the id are passed with it.
>
> is there a definate length that the ID will always be?  can i do a
strNcopy
> instead to remove the extra chars?
>

Reply via email to