32 return (
bool)(strcmp(string1, string2) == 0);
45 va_list variadic_arguments;
46 va_start(variadic_arguments, format);
50 unsigned int formatted_size = vsnprintf(buffer, 0, format, variadic_arguments);
56 va_start(variadic_arguments, format);
57 (void)vsnprintf(formatted, formatted_size + 1, format, variadic_arguments);
76 unsigned int size = 0;
77 while (*
string++ !=
'\0') {
91 unsigned int result = 0;
93 char character = *
string++;
94 if (isdigit(character)) {
95 result = result * 10 + (character -
'0');
unsigned int String__to_unsigned(String_Const string)
Converts from decimal string into a number and return it.
void Memory__free(Memory memory)
Releases the storage associated with memory.
bool String__equal(String_Const string1, String_Const string2)
Returns true if string1 equals string2.
unsigned int String__size(String_Const string)
Returns the size of string.
void String__free(String_Const string)
will free memory assciated with string.
char * String
Copyright (c) 2013-2014 by Wayne C. Gramlich. All rights reserved.
String String__format(String_Const format,...)
Return a formatted version of format.
void * Memory
Memory is a pointer to memory.
const char * String_Const
String String__allocate(unsigned int size)
Allocate and return for size characters.
Memory Memory__allocate(unsigned int bytes, String_Const from)
Allocates bytes of memory and returns a pointer to it.