Skip to content

Instantly share code, notes, and snippets.

@AlexsJones
Created April 8, 2014 12:44
Show Gist options
  • Save AlexsJones/10118500 to your computer and use it in GitHub Desktop.
Save AlexsJones/10118500 to your computer and use it in GitHub Desktop.
/*
* =====================================================================================
*
* Filename: main.c
*
* Description:
*
* Version: 1.0
* Created: 04/08/14 13:19:50
* Revision: none
* Compiler: gcc
*
* Author: jonesax (),
* Organization:
*
* =====================================================================================
*/
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv) {
unsigned int *cargo;
cargo = calloc(sizeof(unsigned int),100);
bzero(cargo,(sizeof(unsigned int) * 100));
memcpy(cargo,"str",3);
int x ;
for(x = 0; x < 3; ++x) {
printf("%u",cargo[x]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment