Advertisement
Guest User

Untitled

a guest
Jan 16th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. // sayhi.h
  2. #ifndef SAYHI_H_
  3. #define SAYHI_H_
  4.  
  5. void sayhi(char*);
  6.  
  7. #endif
  8.  
  9.  
  10. // sayhi.c
  11. #include "sayhi.h"
  12. #include <stdio.h>
  13.  
  14. void sayhi(char* szName) {
  15.     printf("Hi there, %s\n", szName);
  16. }
  17.  
  18.  
  19. // main.c
  20. #include "sayhi.h"
  21.  
  22. int main(int argc, char** argv) {
  23.     sayhi("Mike");
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement