Skip to content

cpppd/libcs50

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS50 Library for C

Build Status

Development

make build: builds dynamic library

make deb: builds source deb

make hack: combines library into cs50.h

make install: installs the library under /usr/local by default (set DESTDIR to change that)

Installation

Ubuntu

$ sudo apt-add-repository ppa:cs50/ppa
$ sudo apt-get update
$ sudo apt-get install libcs50

From Source

  1. Download the latest release per https://github.com/cs50/libcs50/releases
  2. Extract libcs50-*.*
  3. cd libcs50-*
  4. make install

Usage

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();

Documentation

See man get_* after installation, or CS50 Reference!

TODO

  • Add tests.

Contributors

About

CS50 Library for C

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 92.1%
  • Makefile 7.9%