home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / LIB / SEARCHF.C < prev    next >
C/C++ Source or Header  |  1994-06-05  |  454b  |  27 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #include "lib.h"
  5. #include "inlib.h"
  6.  
  7. void    *SearchFunction( lib, fname )
  8. Library    *lib ;
  9. char    *fname ;
  10. {
  11.     int        i ;
  12.     char    buf[256] ;
  13.     Function    *func = lib->func ;
  14.  
  15.     for( i = 0 ; func->func != NULL ; i++ )
  16.     {
  17.         if ( strcmp( fname, func->name ) == 0 )
  18.         {
  19.             return func->func ;
  20.         }
  21.         func ++ ;
  22.     }
  23.     sprintf( buf, "関数\'%s\'がリンクできません", fname );
  24.     MessageError( buf );
  25.     return NULL ;
  26. }
  27.