Helper function for convert from int/long to string
This commit is contained in:
parent
26b9a9e0fa
commit
ebb0ca0dd3
@ -191,3 +191,15 @@ void capwap_daemon(void) {
|
||||
dup2(fd, STDERR_FILENO);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
/* */
|
||||
char* capwap_itoa(int input, char* output) {
|
||||
sprintf(output, "%d", input);
|
||||
return output;
|
||||
}
|
||||
|
||||
/* */
|
||||
char* capwap_ltoa(long input, char* output) {
|
||||
sprintf(output, "%ld", input);
|
||||
return output;
|
||||
}
|
||||
|
@ -108,4 +108,8 @@ void capwap_daemon(void);
|
||||
char* capwap_duplicate_string(const char* source);
|
||||
void* capwap_clone(void* buffer, int buffersize);
|
||||
|
||||
/* */
|
||||
char* capwap_itoa(int input, char* output);
|
||||
char* capwap_ltoa(long input, char* output);
|
||||
|
||||
#endif /* __CAPWAP_HEADER__ */
|
||||
|
Loading…
Reference in New Issue
Block a user