RISC OS Search
Websites
Downloadable Files
Stronghelp Manuals
Acorn Newsgroups
containing
"Nutty quip goes here!"
Home
|
About
|
Filebase Archive
|
StrongHelp Manuals
|
Newsgroups
|
Module Database
Emulation
»
Archimedes
»
BBC Micro
TechDocs
»
Acorn RiscPC
»
Acorn A4 Laptop
»
Acorn A7000
»
Archimedes A5000
»
Archimedes A4000
»
Archimedes A30x0
»
Archimedes A3000
»
Archimedes A680
»
Archimedes A540
»
Archimedes A4x0
»
Archimedes A3x0
»
BBC Master Compact
»
BBC Master 128
»
BBC Micro
»
Acorn Atom
»
Acorn Electron
Clubs
»
WROCC
»
ROUGOL
»
MUG
»
BigBenClub.nl
Shows
»
RISC OS North
»
RISC OS London
»
RISC OS SouthWest
Other Sites
»
RISC OS Open
»
StarDot
(Discord)
»
Archimedes Archive
»
Arc Wiki
»
RISCOSitory news
»
The Icon Bar news
Declaration for
GETSHORT
from
NetLib:arpa.h.nameser
(#define)
/*
* Inline versions of get/put short/long. Pointer is advanced.
*
* These macros demonstrate the property of C whereby it can be
* portable or it can be elegant but rarely both.
*/
#define GETSHORT(s, cp) { \
register u_char *t_cp = (u_char *)(cp); \
(s) = ((
u_int16_t
)t_cp[0] << 8) \
| ((
u_int16_t
)t_cp[1]) \
; \
(cp) +=
INT16SZ
; \
}
Open original source file
See header files's help page
[sh-index]
Back to list of manuals