fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct {
  5. struct ListNode* next;
  6. int content;
  7. } ListNode;
  8.  
  9. ListNode* gridinit(int, int);
  10.  
  11. int main() {
  12. //puts("Hello UPC World"); /* prints Hello UPC World */
  13.  
  14. //ListNode* h = malloc(sizeof(ListNode));
  15. gridinit(3, 5);
  16. //int c = h->content;
  17. //printf("%d",c);
  18.  
  19. return EXIT_SUCCESS;
  20. }
  21.  
  22. ListNode* gridinit(int numcolumns, int numrows) {
  23. ListNode* head = malloc(sizeof(ListNode));
  24. head->content = 2;
  25. head->next = NULL;
  26. return head;
  27. }
Success #stdin #stdout 0s 2152KB
stdin
Standard input is empty
stdout
Standard output is empty