From: nishi Date: Sat, 15 Jun 2024 01:23:50 +0000 (+0000) Subject: format X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=81fc031516bf6c7352fe5d87c50b4225a3d51cc4;p=dataworks.git format git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@307 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Tool/docfmt.c b/Tool/docfmt.c index b3fb0c4..f6552c2 100644 --- a/Tool/docfmt.c +++ b/Tool/docfmt.c @@ -76,8 +76,8 @@ int process_doc(void) { char* cmd = str; char* val = NULL; int i; - for(i = 0; str[i] != 0; i++){ - if(str[i] == ' '){ + for(i = 0; str[i] != 0; i++) { + if(str[i] == ' ') { str[i] = 0; val = str + i + 1; break; @@ -114,8 +114,8 @@ int process_doc(void) { char* cmd = str; char* val = NULL; int i; - for(i = 0; str[i] != 0; i++){ - if(str[i] == ' '){ + for(i = 0; str[i] != 0; i++) { + if(str[i] == ' ') { str[i] = 0; val = str + i + 1; break;