mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	common: Expand comment for znew/znew_n()
This commit is contained in:
		
							parent
							
								
									a54d378e6c
								
							
						
					
					
						commit
						8f585362c1
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -13,7 +13,11 @@ void *xzalloc(size_t size);
 | 
			
		|||
 | 
			
		||||
/*
 | 
			
		||||
 * Type-safe macros in the style of C++ new/new[].
 | 
			
		||||
 * <expr> may be either a type name or value expression.
 | 
			
		||||
 * Both allocate zero-filled memory for object(s) the same size as
 | 
			
		||||
 * <expr>, which may be either a type name or value expression.
 | 
			
		||||
 *
 | 
			
		||||
 * znew() allocates space for one object.
 | 
			
		||||
 * znew_n() allocates space for an array of <n> objects.
 | 
			
		||||
 *
 | 
			
		||||
 * Examples:
 | 
			
		||||
 *   struct wlr_box *box = znew(*box);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue