In the following class I'm using the C lib <time.h> .
The functions gmtime, ctime, and asctime return pointers to char/structs.
Am I responsible to clean the memory allocated by them? Is there any possible memory leak associated to the methods MyTimeClass::getDateAndTimeLocalTime() and...
There are 4 tables defined in this MIB:
- Config Table: which holds configurations profiles for named Logs.
-Stats table : which holds statistical data for each named log.
-Log table: which holds the actual log entries for each named log.
- LogVariableTable: which keeps track of log table...
I’ve got an equipment that receives some data from the network and map it to the structures below:
struct a_s{
u_int16_t cmd;
u_int16_t dataSize;
u_int8_t data[MAX_DATA_SIZE];
};
typedef struct a_s a_t;
struct b_s {
u_int16_t part;
u_int16_t serial;
a_t payload;
};
typedef struct...
Hi,
Is that a function definition? Why there are 2 sets of '()' in the definition and in the call?
What's the name of this kind of definition?
Definition:
static inline void func(pu) ( void )
{
printf( "%s", s_msg_usage );
}
Call:
func(pu)();
Thanks.
In the following code why does the pointer head is still null after function calling? Thanks.
#include <stdio.h>
#include <stdlib.h>
struct list_element{
int info;
struct list_element * next;
};
typedef struct list_element item;
void alloc(item *head){
printf("%p\n"...
Does anyone have a algorithm for drawing a b-tree (a multiway tree, not a binary tree) on the canvas?
I'm having a really hard time trying to do that!
Thanks,
Best regards,
Paul.
I'm having a hard time to use a third party sound engine dll.
How do I load the functions from the dll to use them as if they were in a normal unit(*.c/*.h)?
I've already got the right .lib for c++ builder. But how do I load it?
Best Regards.
Paul.
Do you have any clues how the addition of a parameter to a constructor can cause a Stack overflow?
The following constructor works just fine:
__fastcall TformInteracaoL::TformInteracaoL(TComponent* Owner)
: TForm(Owner)
but the addition of a simple int parameter causes a Stack Overflow...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.