View uint64_t casting
#include <iostream>
using namespace std;
struct C {};
C* f() { return (C*)0x80000000; }
C* b() { return (C*)0x70000000; }
int main()
{
View printCurrentMethod
static void printCurrentMethod()
{
StackTraceElement[] ste = Thread.currentThread().getStackTrace();
System.out.println("DEBUG: " + ste[2].getMethodName());
}
View typedef_struct.cpp
/*
* Some simple typdef/struct compilation tests.
* Tested with gcc4.7 and clang3.1
*/
struct AAA {
int a, b, c, d;
};
typedef struct _BBB { // Windows header style.
View sizeof.c
/*
* gcc -std=c99 -pedantic -Wall sizeof.c && ./a.out
* clang -std=c99 -pedantic -Wall sizeof.c && ./a.out
*/
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <sys/time.h>
View win2utc.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001