<commit_before>/* PD implementation of strerror() for BSD derivatives that don't have it.
   Author: <NAME>, CWI Amsterdam, Oct. 1990, <<EMAIL>>. */

#include <stdio.h>

extern int sys_nerr;
extern char *sys_errlist[];

char *
strerror(err)
	int err;
{
	static char buf[20];
	if (err >= 0 && err < sys_nerr)
		return sys_errlist[err];
	sprintf(buf, "Unknown errno %d", err);
	return buf;
}<commit_msg>Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.<commit_after>/* PD implementation of strerror() for systems that don't have it.
   Author: <NAME>, CWI Amsterdam, Oct. 1990, <<EMAIL>>. */

#include <stdio.h>

extern int sys_nerr;
extern char *sys_errlist[];

char *
strerror(err)
	int err;
{
	static char buf[20];
	if (err >= 0 && err < sys_nerr)
		return sys_errlist[err];
	sprintf(buf, "Unknown errno %d", err);
	return buf;
}

#ifdef THINK_C
int sys_nerr = 0;
char *sys_errlist[1] = 0;
#endif
{'fraction_non_alphanumeric': 0.1420824295010846, 'fraction_numerical': 0.01843817787418655, 'mean_word_length': 4.461538461538462, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2709302', 'n_tokens_mistral': 365, 'n_tokens_neox': 339, 'n_words': 114}