CDA CD 60 Spezifikationen Seite 47

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 91
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 46
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 47
Arguments
nbytes
number of bytes of memory to allocate.
Example
unsigned char *buf = edt_alloc(1024);
Returns
The address of the allocated memory, or NULL on error. If NULL, use edt_perror on page 47 to print
the error.
edt_free
Description
Convenience routine to free the memory allocated with pdv_alloc (above).
Syntax
#include "edtinc.h"
int
edt_free(unsigned char *buf)
Arguments
buf
Address of memory buffer to free.
Example
edt_free(buf);
Returns
0 if successful, –1 if unsuccessful.
edt_perror
Description
Formats and prints a system error.
Syntax
#include "edtinc.h"
void
edt_perror(char *errstr)
Arguments
errstr
Error string to include in the printed error output.
Return
No return value. See edt_errno below for an example.
edt_errno
Description
Returns an operating system-dependent error number.
Seitenansicht 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 90 91

Kommentare zu diesen Handbüchern

Keine Kommentare