src/smem.c
/**
 * @brief Initialize a size memory
 *
 * @param mem The sized memory to initialize
 * @param len The desired length
 *
 * @return A non-zero value on success
 */
@brief Initialize a size memory
@param mem The sized memory to initialize
@param len The desired length

@return A non-zero value on success
@brief Initialize a size memory @param mem The sized memory to initialize @param len The desired length @return A non - zero value on success
int smem_init(smem_t *mem, size_t len) {
  assert(mem);
  mem->len = len;
  mem->mem = calloc(mem->len, sizeof(char));
  return !!(mem->mem);
}
int smem_init ( smem_t * mem , size_t len ) { assert ( mem ) ; mem -> len = len ; mem -> mem = calloc ( mem -> len , sizeof ( char ) ) ; return ! ! ( mem -> mem ) ; }
@brief Initialize a size memory
 @param mem The sized memory to initialize
 @param len The desired length
@brief Initialize a size memory @param mem The sized memory to initialize @param len The desired length