formatting code

This commit is contained in:
stefan schippers 2023-02-13 12:18:47 +01:00
parent 9e7f67aca6
commit c5261a2ff6
2 changed files with 1 additions and 11 deletions

View File

@ -503,7 +503,6 @@ size_t my_strncat(int id, char **str, size_t n, const char *append_str)
}
}
void *my_calloc(int id, size_t nmemb, size_t size)
{
void *ptr;
@ -608,16 +607,8 @@ void set_inst_prop(int i)
}
}
#define DGT(c) ((c) >= '0' && (c) <= '9')
#define SPC(c) ((c) == ' ' || (c) == '\t')
/* fast convert (decimal) string to float */
float my_atof(const char *p)
{
@ -733,7 +724,7 @@ double my_atod(const char *p)
return sign * value;
}
/* super fast count # of lines (and bytes) in a file */
/* super fast count # of newlines (and bytes) in a file */
int count_lines_bytes(int fd, size_t *lines, size_t *bytes)
{
enum {BUFFER_SIZE=16384};

View File

@ -733,7 +733,6 @@ int raw_read(const char *f, const char *type)
return 0;
}
/* Read data organized as a table
* First line is the header line containing variable names.
* data is presented in column format after the header line