Skip to content

Instantly share code, notes, and snippets.

@98chimp
Created March 12, 2015 07:00
Show Gist options
  • Save 98chimp/96eb3f3a3a0e295fa2d7 to your computer and use it in GitHub Desktop.
Save 98chimp/96eb3f3a3a0e295fa2d7 to your computer and use it in GitHub Desktop.
Reading Assignment
//
// temp.c
// Adventure Game
//
// Created by Shahin on 2015-03-11.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
// Q3
int my_strlen(char *string) {
int length = 0;
while (string[length] != '\0') {
length++;
}
return length;
}
// Q4
int (*someFunc)(char*, char*);
// this function takes two pointer input types and outputs an integer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment