version 1.34, 2015/12/15 16:26:17 |
version 1.35, 2015/12/31 16:10:31 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <sysexits.h> |
|
#include <unistd.h> |
#include <unistd.h> |
#include <wchar.h> |
#include <wchar.h> |
#include <wctype.h> |
#include <wctype.h> |
|
|
} |
} |
if (result <= 0) { |
if (result <= 0) { |
Lose: |
Lose: |
errx(EX_USAGE, "%s", err_mess); |
errx(1, "%s", err_mess); |
} |
} |
|
|
return (size_t) result; |
return (size_t) result; |
|
|
--argc; |
--argc; |
++argv; |
++argv; |
if (max_length < goal_length) |
if (max_length < goal_length) |
errx(EX_USAGE, "max length must be >= goal length"); |
errx(1, "max length must be >= goal length"); |
} |
} |
} |
} |
|
|
|
|
|
|
p = realloc(ptr, nbytes); |
p = realloc(ptr, nbytes); |
if (p == NULL) |
if (p == NULL) |
errx(EX_OSERR, "out of memory"); |
errx(1, "out of memory"); |
return p; |
return p; |
} |
} |
|
|