Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds support for optional args, with backwards compatibility #64

Merged
merged 12 commits into from
May 15, 2017
Prev Previous commit
Next Next commit
fixed eprintf's comments
dmalan committed Apr 29, 2017

Unverified

No user is associated with the committer email.
commit 72d60839efd83b20d2c47b817730e487d0ea75c1
5 changes: 2 additions & 3 deletions src/cs50.c
Original file line number Diff line number Diff line change
@@ -52,9 +52,8 @@
#include "cs50.h"

/**
* Prints an error message, formatted like printf, to standard error, prefixing it with program's
* name as well as the file and line number from which function was called, which a macro is
* expected to provide.
* Prints an error message, formatted like printf, to standard error, prefixing it with
* file name and line number from which function was called (which a macro provides).
*
* This function is not intended to be called directly. Instead, call the macro of the same name,
* which expects fewer arguments.
5 changes: 2 additions & 3 deletions src/cs50.h
Original file line number Diff line number Diff line change
@@ -66,9 +66,8 @@
typedef char *string;

/**
* Prints an error message, formatted like printf, to standard error, prefixing it with program's
* name as well as the file and line number from which function was called, which a macro is
* expected to provide.
* Prints an error message, formatted like printf, to standard error, prefixing it with
* file name and line number from which function was called (which a macro provides).
*
* This function is not intended to be called directly. Instead, call the macro of the same name,
* which expects fewer arguments.