Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!munnari.oz.au!bruce!labtam!eyrie!guru!terminal From: terminal@guru.pub.uu.oz.au (bernard) Newsgroups: comp.sys.amiga.programmer Subject: amiga data types Message-ID: <68P831w164w@guru.pub.uu.oz.au> Date: 8 Jun 91 02:48:52 GMT Organization: The Guru Meditation BBS Lines: 33 Hi there.. Just wondering if anyone could help me with the amiga data types as defined in exec/types.h.. Common problems I am having are scanning a UBYTE[] into UWORD components.. like this UBYTE dest[21]; strcpy (dest, "366/359.3"); sscanf(dest, "%d/%d.%d", &net, &node, &point); where net, node and point are UWORD net, node, point; when i printf("%d/%d.%d\n", net, node, point); i get something like 359/3.0 ???? Any ideas?! Im really stuck, i have tried all sorts of casting and could get nothing to work except when int net, node, point; it worked right.. thanks in advance. bernard ------------ -> Perls of Wisdom from terminal@guru.pub.uu.oz.au (bernard) -> User Level: 2 (Llama) -> The Guru Meditation BBS - (03) 375 3438 (all speeds to 9600)