home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 2001 January / LCD_01_2001.iso / develop / cookies / c / cooktest.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-03  |  1.1 KB  |  39 lines

  1. /* Filename                    : Cooktest.c - Example for use of cookie static library (C)
  2.  * Number of functions    : 1
  3.  * Version                    : 1.01
  4.  * Author                    : Nicolas Richeton ( nicolas.richeton@free.fr )
  5.  * Last update                : 20/04/2000
  6.  * Statut                    : Freeware
  7.  * Downloaded from        : http://nicosoft.free.atari.fr
  8.  * Comments                    : Based on the work of Thomas Much
  9.  * History                    : 20/04/2000 - Added LDG version
  10.  *                        16/02/2000 - First version
  11.  */
  12.  
  13. #include    <stdio.h>
  14. #include    <portab.h>
  15. #include    <mgx_dos.h>
  16. #include    <mt_aes.h>
  17. #include "cookies.h"
  18.  
  19. ULONG main( VOID )
  20. {    
  21.     ULONG    dummy;
  22.     
  23.     appl_init();
  24.     printf( "\nTest for static lib 'cookies.c'\nBy Nicolas Richeton\n" );
  25.             
  26.     if( Cookie_NewCookie( 'CLDG', 0x10 ) )        /* Install Cookie */
  27.         printf( "\nTest cookie 'CLDG' installed" );
  28.             
  29.     if( Cookie_GetCookie( 'CLDG', &dummy ) )        /* Read Cookie */
  30.         printf( "\nTest cookie 'CLDG' found" );
  31.             
  32.     if( Cookie_RemoveCookie( 'CLDG' ) )            /* Remove Cookie */
  33.         printf( "\nTest cookie 'CLDG' removed" );
  34.         
  35.  
  36.     appl_exit();
  37.     
  38.     return( 0 );
  39. }