source: bootcd/isolinux/syslinux-6.03/com32/samples/hello.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 498 bytes
Line 
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
16int 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}
Note: See TracBrowser for help on using the repository browser.