Skip to content

Instantly share code, notes, and snippets.

@jkwill87
Created January 15, 2016 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkwill87/9084ba563bee31af78d1 to your computer and use it in GitHub Desktop.
Save jkwill87/9084ba563bee31af78d1 to your computer and use it in GitHub Desktop.
CIS2500 - lab 01 - hello
#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);
}
#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