mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	string-helper: add str_space_only()
This commit is contained in:
		
							parent
							
								
									67f36d9e13
								
							
						
					
					
						commit
						ad970544e1
					
				
					 2 changed files with 17 additions and 0 deletions
				
			
		|  | @ -204,3 +204,14 @@ str_equal(const char *a, const char *b) | |||
| { | ||||
| 	return a == b || (a && b && !strcmp(a, b)); | ||||
| } | ||||
| 
 | ||||
| bool | ||||
| str_space_only(const char *s) | ||||
| { | ||||
| 	for (; *s; s++) { | ||||
| 		if (!isspace(*s)) { | ||||
| 			return false; | ||||
| 		} | ||||
| 	} | ||||
| 	return true; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tokyo4j
						tokyo4j