Skip to content

Instantly share code, notes, and snippets.

@danish-rehman
Created June 3, 2015 05:50
Show Gist options
  • Save danish-rehman/efb602eefe33451efff5 to your computer and use it in GitHub Desktop.
Save danish-rehman/efb602eefe33451efff5 to your computer and use it in GitHub Desktop.
comment_function
/**
* @brief Prints the string s, starting at the current
* location of the cursor.
*
* If the string is longer than the current line, the
* string should fill up the current line and then
* continue on the next line. If the string exceeds
* available space on the entire console, the screen
* should scroll up one line, and then the string should
* continue on the new line. If '\n', '\r', and '\b' are
* encountered within the string, they should be handled
* as per putbyte. If len is not a positive integer or s
* is null, the function has no effect.
*
* @param s The string to be printed.
* @param len The length of the string s.
* @return Void.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment