Skip to content

jwerle/asprintf.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asprintf.c

asprintf() implementation

Install

$ clib install littlstar/asprintf.c

Usage

#include <asprintf.h>

or

#include <asprintf/asprintf.h>

Example

char *str = NULL;
char *fmt = "this is a %s";
int size = asprintf(&str, fmt, "string");

printf("%s\n", str); // this is a string
printf("%d\n", size); // 16

License

MIT

About

asprintf() implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •