Why are these not uppercase?The thrd_create function returns thrd_success on success, or thrd_nomem if no memory could be allocated for the thread requested, or thrd_error if the request could not be honored.

Why are these not uppercase?The thrd_create function returns thrd_success on success, or thrd_nomem if no memory could be allocated for the thread requested, or thrd_error if the request could not be honored.


Code: Select all
enum class foo_result {
success,
fail1,
fail2,
};
enum class bar_result {
fail1,
fail2,
success,
};
Code: Select all
#include <stdlib.h>
#ifdef NULL
#undef NULL
#endif
#define NULL (void *)27Code: Select all
enum thrd_return_cnsts {
thrd_success,
thrd_nomem,
thrd_error };
enum thrd_return_cnsts thread_create(thrd_t *, thrd_start_t, void *);