New function ERR_error_string_n.

This commit is contained in:
Bodo Möller
2000-04-14 23:36:15 +00:00
parent d49f3797a5
commit e5c84d5152
10 changed files with 147 additions and 80 deletions

View File

@@ -104,7 +104,10 @@ int MAIN(int argc, char **argv)
for (i=1; i<argc; i++)
{
if (sscanf(argv[i],"%lx",&l))
printf("%s\n",ERR_error_string(l,buf));
{
ERR_error_string_n(l, buf, sizeof buf);
printf("%s\n",buf);
}
else
{
printf("%s: bad error code\n",argv[i]);