Created
March 12, 2015 07:00
-
-
Save 98chimp/96eb3f3a3a0e295fa2d7 to your computer and use it in GitHub Desktop.
Reading Assignment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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