• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * hello.c - A simple ELF module that sorts a couple of numbers
3  *
4  *  Created on: Aug 11, 2008
5  *      Author: Stefan Bucur <stefanb@zytor.com>
6  */
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 
11 #include "sort.h"
12 
13 #define NUM_COUNT		10
14 #define MAX_NUM			100
15 
main(int argc __unused,char ** argv __unused)16 int main(int argc __unused, char **argv __unused)
17 {
18     int *nums = NULL;
19 
20     nums = malloc(NUM_COUNT * sizeof(int));
21     printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&main, nums);
22 
23     free(nums);
24 
25     return 0;
26 }
27