cross-plat-dev-utils/get_wordsize.c
author mikek
Sun, 16 May 2010 13:06:27 +0100
changeset 12 5e7562f67577
parent 10 b2a53d442fd6
child 29 86492ef8d086
permissions -rwxr-xr-x
Update the diffs patchfile to latest revision
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     1
/*
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     2
Copyright (c) 2010 Symbian Foundation Ltd
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     3
This component and the accompanying materials are made available
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     4
under the terms of the License "Eclipse Public License v1.0"
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     5
which accompanies this distribution, and is available
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     6
at the URL "http://www.eclipse.org/legal/epl-v10.html".
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     7
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     8
Initial Contributors:
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     9
Mike Kinghan, mikek@symbian.org for Symbian Foundation Ltd - initial contribution.
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    10
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    11
Program to return the wordsize in bits of the host machine
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    12
*/
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    13
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    14
#include <stdio.h>
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    15
#include <stdlib.h>
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    16
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    17
int main(void)
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    18
{
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    19
	printf("%lu\n",sizeof(unsigned long));
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    20
	exit(0);
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    21
}
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    22