Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[refactor] `saneopt_new` -> `saneopt_init`

  • Loading branch information...
commit f45b80d23dc7da28c5935e5ee4e5bc874ee4566f 1 parent 7f7198b
@mmalecki authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  include/saneopt.h
  2. +1 −1  src/saneopt.c
View
2  include/saneopt.h
@@ -17,7 +17,7 @@ struct saneopt {
/*
* Create a new `saneopt` parser.
*/
-saneopt_t* saneopt_new(int argc, char** argv);
+saneopt_t* saneopt_init(int argc, char** argv);
/*
* Set an alias from `old` to `new`.
View
2  src/saneopt.c
@@ -3,7 +3,7 @@
#include "../include/saneopt.h"
-saneopt_t* saneopt_new(int argc, char** argv) {
+saneopt_t* saneopt_init(int argc, char** argv) {
saneopt_t* saneopt = malloc(sizeof(saneopt_t));
saneopt->argc = argc;
saneopt->argv = argv;
Please sign in to comment.
Something went wrong with that request. Please try again.