/* $Id: scan_ushort.c,v 1.4 2001/10/11 15:23:54 drt Exp $ * * 000410 drt@un.bewaff.net with bold inspiration from DJBs stuff * * $Log: scan_ushort.c,v $ * Revision 1.4 2001/10/11 15:23:54 drt * fixed cvs typo * * Revision 1.3 2001/10/08 12:51:22 drt * uodated emailaddress * * Revision 1.2 2000/04/28 12:54:56 drt * Cleanup, better integration of libtai and dnscache * * Revision 1.1.1.1 2000/04/12 16:07:11 drt * initial revision * */ #include "scan.h" unsigned int scan_ushort(char *s, unsigned short *u) { unsigned long l; unsigned int r; r = scan_ulong(s, &l); *u = l; return r; }