?? htons.c
字號(hào):
/* * Written by J.T. Conklin . * Public domain. * * CHANGELOG: this file has been modified by Sergio Perez Alca駃z <serpeal@upvnet.upv.es> * Departamento de Inform醫(yī)ica de Sistemas y Computadores * Universidad Polit閏nica de Valencia * Valencia (Spain) * Date: March 2003 * */#undef htons/* *//* htons */in_port_thtons(x) in_port_t x;{#if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x; return (in_port_t)(s[0] << 8 | s[1]);#else return x;#endif}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -