Created
January 15, 2016 03:05
-
-
Save jkwill87/9084ba563bee31af78d1 to your computer and use it in GitHub Desktop.
CIS2500 - lab 01 - hello
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
#include <stdio.h> | |
#include "hello.h" | |
int main(int argc, char** argv, char *envp[]){ | |
hello("World"); | |
hello("is it me you're looking for?"); | |
return 0; | |
} | |
void hello(char* toWho){ | |
printf("Hello, %s!\n", toWho); | |
} |
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
#ifndef __JWILLI19__HELLO__ | |
#define __JWILLI19__HELLO__ | |
/* | |
INPUT (toWho): the string to be wrapped by "Hello, {str}!" | |
OUTPUT: None | |
PRE-CONDITIONS: toWho is a nul terminated char array | |
POST-CONDITIONS: "Hello, {str}!" is printed to stdout | |
*/ | |
void hello(char* toWho); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment