Design and implement a minimalistic version of the standard C library and the standard template library (C++ STL). The C++ STD should be under a separate namespace, e.g., krstd:: (instead of std:: to avoid confusion due to non-conforming implementations).
The goal is not to have complete support, but rather to have a baseline for some implementations.
What would be convenient for C standard library:
- memcpy, memcmp, memset, memmove, strcmp, strncmp, bzero, strlen, printf (sprintf, fprintf), floor, ceil, round, fabs
- basic math functions (pow, sqrt, sin, cos, tan, exp, asin, atan, acos, log, log10)
- basic file interface (fopen, fclose, fread, fwrite, fclose, fgets, fgetc, fputc, fputs, fseek, ftell)
- string conversions (strtod, strtol, ...)
What would be convenient for C++ standard template library:
- basic iterators and containers (std::array, vector, list, map, set)
- string support (std::string)
- etc. (to be specified)
Design and implement a minimalistic version of the standard C library and the standard template library (C++ STL). The C++ STD should be under a separate namespace, e.g., krstd:: (instead of std:: to avoid confusion due to non-conforming implementations).
The goal is not to have complete support, but rather to have a baseline for some implementations.
What would be convenient for C standard library:
What would be convenient for C++ standard template library: