home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / dos / freedosentry.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  1.8 KB  |  84 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: freedosentry.c,v 1.7 1997/01/27 00:36:21 ldp Exp $
  4.     $Log: freedosentry.c,v $
  5.     Revision 1.7  1997/01/27 00:36:21  ldp
  6.     Polish
  7.  
  8.     Revision 1.6  1996/12/09 13:53:29  aros
  9.     Added empty templates for all missing functions
  10.  
  11.     Moved #include's into first column
  12.  
  13.     Revision 1.5  1996/10/24 15:50:30  aros
  14.     Use the official AROS macros over the __AROS versions.
  15.  
  16.     Revision 1.4  1996/10/10 13:20:49  digulla
  17.     Use dol_DevName(STRPTR) instead of dol_Name(BSTR) (Fleischer)
  18.  
  19.     Revision 1.3  1996/08/13 13:52:47  digulla
  20.     Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h"
  21.     Replaced AROS_LA by AROS_LHA
  22.  
  23.     Revision 1.2  1996/08/01 17:40:52  digulla
  24.     Added standard header for all files
  25.  
  26.     Desc:
  27.     Lang: english
  28. */
  29. #include <proto/exec.h>
  30. #include "dos_intern.h"
  31.  
  32. /*****************************************************************************
  33.  
  34.     NAME */
  35. #include <proto/dos.h>
  36.  
  37.     AROS_LH1(void, FreeDosEntry,
  38.  
  39. /*  SYNOPSIS */
  40.     AROS_LHA(struct DosList *, dlist, D1),
  41.  
  42. /*  LOCATION */
  43.     struct DosLibrary *, DOSBase, 117, Dos)
  44.  
  45. /*  FUNCTION
  46.     Frees a dos list entry created with MakeDosEntry().
  47.  
  48.     INPUTS
  49.     dlist - pointer to dos list entry. May be NULL.
  50.  
  51.     RESULT
  52.  
  53.     NOTES
  54.  
  55.     EXAMPLE
  56.  
  57.     BUGS
  58.  
  59.     SEE ALSO
  60.  
  61.     INTERNALS
  62.  
  63.     HISTORY
  64.     29-10-95    digulla automatically created from
  65.                 dos_lib.fd and clib/dos_protos.h
  66.  
  67. *****************************************************************************/
  68. {
  69.     AROS_LIBFUNC_INIT
  70.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  71.  
  72.     if(dlist!=NULL)
  73.     {
  74.     STRPTR s2;
  75.     s2=dlist->dol_DevName;
  76.     while(*s2++)
  77.        ;
  78.     FreeMem(dlist->dol_DevName-1,s2-dlist->dol_DevName+2);
  79.     FreeMem(dlist,sizeof(struct DosList));
  80.     }
  81.  
  82.     AROS_LIBFUNC_EXIT
  83. } /* FreeDosEntry */
  84.