apply astyle
This commit is contained in:
parent
53506973a4
commit
9f11c01450
|
@ -74,7 +74,7 @@ int main()
|
|||
int len = std::min(1 + atoi(lenstr), (int)(sizeof(data) - 2));
|
||||
fgets(data, len, stdin);
|
||||
} else {
|
||||
const char *s = getenv("QUERY_STRING");
|
||||
const char *s = getenv("QUERY_STRING");
|
||||
strncpy(data, s?s:"", sizeof(data)-2);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char *replace(char *str, char before, char after) {
|
||||
char *replace(char *str, char before, char after)
|
||||
{
|
||||
while (strchr(str,before))
|
||||
*strchr(str,before) = after;
|
||||
return str;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
FILE *f = fopen("times.log", "rt");
|
||||
if (!f)
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue