This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************************************************************* | |
| * 32bit integer bitwise flags | |
| * Complete definition - by Polda18 | |
| ************************************************************************* | |
| * You may rename flags as you wish, and use as many as you wish. | |
| * If for some reason you need more than 32 bits, you can expand | |
| * the definition by adding more 32 bits and a switch "L" like that: | |
| * 0x0000000000000000L => That makes the literal long int | |
| *************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Source: http://www.mralligator.com/q3/ | |
| // Source: https://github.com/id-Software/GtkRadiant/blob/master/tools/quake3/q3map2/q3map2.h | |
| #ifndef __IBSP_FORMAT_DEF_H__ | |
| #define __IBSP_FORMAT_DEF_H__ | |
| // Byte definition | |
| typedef unsigned char ubyte; | |
| // Vectors definition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // source: https://stackoverflow.com/questions/6899025/hide-user-input-on-password-prompt | |
| #include <iostream> | |
| #include <string> | |
| #ifdef WIN32 // Windows | |
| #include <windows.h> | |
| #else // Unix = Linux / Mac OS | |
| #include <termios.h> | |
| #include <unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main(void) { | |
| fprintf(stdout, ">> X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF\n"); | |
| for(int i = 0; i < 16; ++i) { | |
| fprintf(stdout, "%XX", i); | |
| for(int j = 0; j < 16; ++j) { | |
| unsigned char num = i * 16 + j; | |
NewerOlder