![]() |
|
|||
File indexing completed on 2025-05-11 08:24:33
0001 /* 0002 * Copyright (c) 2010 by 0003 * Ralf Corsépius, Ulm, Germany. All rights reserved. 0004 * 0005 * Permission to use, copy, modify, and distribute this software 0006 * is freely granted, provided that this notice is preserved. 0007 */ 0008 0009 #ifdef HAVE_CONFIG_H 0010 #include "config.h" 0011 #endif 0012 0013 #include <arpa/inet.h> 0014 0015 int main(void) 0016 { 0017 uint32_t u32; 0018 uint16_t u16; 0019 0020 u32 = htonl(0x12345678); 0021 (void) u32; 0022 u16 = htons(0x1234); 0023 (void) u16; 0024 0025 u32 = ntohl(0x12345678); 0026 (void) u32; 0027 u16 = ntohs(0x1234); 0028 (void) u16; 0029 0030 return 0; 0031 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |