home *** CD-ROM | disk | FTP | other *** search
/ Fujiology Archive / fujiology_archive_v1_0.iso / !MAGS / ATOS / ATOS_ALL.ZIP / news / cookie1.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-21  |  889 b   |  46 lines

  1. #include <string.h>
  2. #include <stdio.h>
  3. #include "cookie.h"
  4.  
  5. void CookieSetL(CookieEntry *Cookie,long Name,long Value)
  6. {
  7.    Cookie->name.name_long = Name;
  8.    Cookie->value = Value;
  9. }
  10.  
  11. void CookieSetS(CookieEntry *Cookie,char *Name,long Value)
  12. {
  13.    memcpy(Cookie->name.name_array,Name,4);
  14.    Cookie->value = Value;
  15. }
  16.  
  17. void CookiePrint(CookieEntry *Cookie)
  18. {
  19.    printf("Name des Cookies: %d\n", Cookie->name.name_long);
  20.    printf("Wert des Cookies: %d\n", Cookie->value);
  21. }
  22.  
  23. void CookieInput(CookieEntry *Cookie)
  24. {
  25. }
  26.  
  27. int CookieIsNullCookie(CookieEntry *Cookie)
  28. {
  29.    return Cookie->name.name_long == NULL_COOKIE;
  30. }
  31.  
  32. int CookieIsCookie(CookieEntry *Cookie,long Name)
  33. {
  34.    return Cookie->name.name_long == Name;
  35. }
  36.  
  37. int CookieRead(CookieEntry *Cookie,FILE *stream)
  38. {
  39.    return 0;
  40. }
  41.  
  42. int CookieWrite(CookieEntry *Cookie,FILE *stream)
  43. {
  44.    return 0;
  45. }
  46.