Requires Docker Engine.
make bash
make build # builds dynamic library
make deb # builds .deb
make pacman # builds .pkg.tar.xz
make rpm # builds .rpm
make test # builds test program
- Download the latest release per https://github.com/cs50/libcs50/releases
- Extract
libcs50-*.*
cd libcs50-*
make install
Link with -lcs50
.
#include <cs50.h>
...
char c = get_char();
double d = get_double();
float f = get_float();
int i = get_int();
long long ll = get_long_long();
string s = get_string();
- Add tests.