Skip to content

Instantly share code, notes, and snippets.

View dakonr's full-sized avatar

Daniel Konrad dakonr

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
int *int_to_4_arr(int number)
{
int *returnarr = (int*)malloc(sizeof(int) * 4);
if (number >= 10000 || returnarr == NULL)
{
return NULL;
}