Commit b76ae730 authored by Sam Schmalzried's avatar Sam Schmalzried

started on challenge 1

parent bbe6bf3a
File added
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
char* hexToBinary(char*);
char* binaryTo64(char*);
int main(int argc, char* argv[]) {
if (argc == 1) {
printf("Invalid number of arguments\n");
char* binaryString, base64String;
strcpy(binaryString, hexToBinary(argv[1]));
return 0;
char* hexToBinary(char* hexString) {
char* binaryString = malloc(4 * sizeof(hexString));
return binaryString;
char* binaryTo64(char* binaryString) {
char* base64String = malloc(sizeof(binaryString));
return base64String;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment