#include <stdbool.h>
Go to the source code of this file.
|
void | BFErrorPrint (const char *format,...) |
|
int | BFByteGetString (unsigned long long byteSize, unsigned char options, char *outStr) |
|
bool | BFArrayStringContainsString (char **strArr, int arrSize, const char *element) |
|
int | BFArrayStringGetIndexForString (char **strArr, int arrSize, const char *element) |
|
int | BFNetGetIPForHostname (const char *hostname, char *ip) |
|
char * | BFStringCreateBinaryStringForNumber (long long num, int size, int *err) |
|
◆ kBFByteGibiByte
◆ kBFByteGigaByte
◆ kBFByteKibiByte
#define kBFByteKibiByte 1024 |
◆ kBFByteKiloByte
#define kBFByteKiloByte 1000 |
author: Brando date: 6/2/22
◆ kBFByteMebiByte
◆ kBFByteMegaByte
◆ kBFByteTebiByte
◆ kBFByteTeraByte
◆ BFArrayStringContainsString()
bool BFArrayStringContainsString |
( |
char ** | strArr, |
|
|
int | arrSize, |
|
|
const char * | element ) |
Sweeps the array to see of it contains the string specified by element
◆ BFArrayStringGetIndexForString()
int BFArrayStringGetIndexForString |
( |
char ** | strArr, |
|
|
int | arrSize, |
|
|
const char * | element ) |
returns -1 if string could not be found
◆ BFByteGetString()
int BFByteGetString |
( |
unsigned long long | byteSize, |
|
|
unsigned char | options, |
|
|
char * | outStr ) |
Creates a string that represents the byteSize
outStr needs to be a valid string buffer that can accept at least 10 bytes of data options : ||||||||0=KiloByte, 1=KibiByte|
returns 0 on success, anything else is an error
◆ BFErrorPrint()
void BFErrorPrint |
( |
const char * | format, |
|
|
| ... ) |
Prints std error
author: Brando date: 6/2/22
◆ BFNetGetIPForHostname()
int BFNetGetIPForHostname |
( |
const char * | hostname, |
|
|
char * | ip ) |
returns the ip address for the hostname
◆ BFStringCreateBinaryStringForNumber()
char * BFStringCreateBinaryStringForNumber |
( |
long long | num, |
|
|
int | size, |
|
|
int * | err ) |
Creates binary string representation of the num variable (you know since printf() can't print in binary format
size: byte size of num
Caller must free