Skip to content

Instantly share code, notes, and snippets.

@kateolenya
Created March 14, 2019 22:02
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 kateolenya/153ad455b6e7a346efae5d441fae0281 to your computer and use it in GitHub Desktop.
Save kateolenya/153ad455b6e7a346efae5d441fae0281 to your computer and use it in GitHub Desktop.
Private function in C using static
#include "private_funct.h"
int main()
{
struct Contact * Tony;
Tony = create_contact();
// print_numbers( Tony );
// will cause compile time error
delete_contact( Tony );
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment