Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
Update misc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed May 15, 2015
1 parent a517da4 commit fb3cb57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions chapters/misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ if(ec_init() == 0) {
...
```

##ec_version()
`char *ec_version(void);`

Returns the version of libec in use. This function is guaranteed to return a valid string.

```c
#include <ec.h>
...
printf("Libec version: %s\n", ec_version());
...
```
##ec_errstr()
`char *ec_errstr(ec_err_t error);`
Expand Down

0 comments on commit fb3cb57

Please sign in to comment.