staticvoid
memory_error_and_abort (fname) constchar *fname;
{
fprintf (stderr, "%s: out of virtual memory\n", fname); exit (2);
}
/* Return a pointer to free()able block of memory large enough toholdBYTESnumberofbytes.Ifthememorycannotbeallocated,
print an error message and abort. */
PTR_T
xmalloc (bytes)
size_t bytes;
{
PTR_T temp;
if (temp == 0)
memory_error_and_abort ("xrealloc"); return (temp);
}
/* Use this as the function to call when adding unwind protects so we
don't need to know what free() returns. */ void
xfree (string)
PTR_T string;
{ if (string)
free (string);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.21 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.