/* off.c - CNet GETUSER offset finder
 *
 * history:
 *
 * - initially coded by Spaceman (M. Bruford)
 * - released by Dotoran of Frontiers BBS as part of his CNet GETUSER offsets package
 * - modified and re-released by Ray A. Akey as part of CNet SDK
 * - "offv" script no longer required
 * - added V switch to "off" script to invoke it in verbose mode
 * - removed startup module dependancy to reduce code size and improve speed.
 * - added syntax menu/help to off if no args entered on command line
 */

struct STRUCT *mem;
struct DosLibrary *DOSBase;

__saveds void main(void)
{
	if(DOSBase = (struct DosLibrary *)OpenLibrary("dos.library", 36L))
		{
		Printf("\n\n[0;1;31m  GU Offset: [1;32m%05ld[0;1;31m\nStruct size: [1;33m%ld[0;31m\n\n", offsetof(struct STRUCT, VARIABLE), sizeof(struct STRUCT));
		CloseLibrary((struct Library *)DOSBase);
		}
	return;
}
