User Profile

Collapse

Profile Sidebar

Collapse
matthoffman
matthoffman
Last Activity: Dec 30 '09, 10:58 AM
Joined: Dec 30 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • matthoffman
    replied to Return type is an incomplete type
    in C
    Omg fixed.
    Simply changed the function into TTF_Font * Init_Font()
    and return NULL instead of exit(EXIT_FAILU RE).
    ;).
    Sorry for disturbing ^^
    See more | Go to post

    Leave a comment:


  • matthoffman
    started a topic Return type is an incomplete type
    in C

    Return type is an incomplete type

    Code:
    #include <stdlib.h>
    #include <stdio.h>
    #include <SDL/SDL.h>
    #include <SDL/SDL_ttf.h>
    
    TTF_Font Init_Font()
    {
      TTF_Font *police = NULL;
    
      TTF_Init();
      if(TTF_Init() == -1)
        {
          fprintf(stderr, "Erreur d'initialisation de TTF_Init : %s\n", TTF_GetError());
          exit(EXIT_FAILURE);
        }
    
      police
    ...
    See more | Go to post
No activity results to display
Show More
Working...