sample.c 333 B

12345678910111213141516171819202122232425
  1. #include <stdio.h>
  2. struct User {
  3. char* name;
  4. char* email;
  5. };
  6. typedef struct {
  7. int id;
  8. char* name;
  9. } Admin;
  10. void login(const char* user, const char* pass) {
  11. printf("Logging in %s\n", user);
  12. }
  13. int logout(char* user) {
  14. return 0;
  15. }
  16. static void helper() {
  17. printf("Helper\n");
  18. }
  19. const int MAX_RETRIES = 3;