Skip to content

Commit

Permalink
Add const to strcmp params.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giannis Vrentzos committed Aug 28, 2016
1 parent e20bc0a commit 57eafb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/interfaceToC.dd
Expand Up @@ -25,7 +25,7 @@ $(H2 $(LNAME2 calling_c_functions, Calling C Functions))
)

------
extern (C) int strcmp(char* string1, char* string2);
extern (C) int strcmp(const char* string1, const char* string2);
------

$(P and then it can be called within D code in the obvious way:)
Expand Down

0 comments on commit 57eafb5

Please sign in to comment.