Question: I am trying to googling for passing in acceptable parameters for setting up cronJobs based on a users timeZone. Im using a cronJob module which can be found here.

<https://github.com/ncb000gt/node-cron>

The problem is I need to pass different timeZones but I can't seem to find the acceptable parameters and format for the different timezones. Can anyone point me in the right direction?

Answer: 
malloc returns a void\*. You need to cast the returned value.

```
 HugeInteger *ptr = (HugeInteger*)malloc(sizeof(HugeInteger) * INIT_MEMO_SIZE); 

```
Your comment says that this code "creates and initializes a Memo struct" however, I see no place where it either creates or initializes a `Memo` `struct`. In fact, the function doesn't even return such a struct (unless memory allocation failed). Perhaps you want something like this:

```
Memo *createMemo(void)
{ 
    Memo *memo = malloc(sizeof(Memo));

    if(memo == NULL)
        return NULL;

    memo->F = malloc(sizeof(struct HugeInteger) * INIT_MEMO_SIZE); 

    if(memo->F == NULL)
    { // Oops, memory allocation failed.
        free(memo);
        return NULL;
    }

    // other initialization here -- perhaps set memo->length 
    // to some sensible value
    memo->length = INIT_MEMO_SIZE;

    // and return the new memo
    return memo;
} // End of *createMemo

```

Generally speaking, you should not need to typecast the result of a `malloc` operation in C. Indeed, doing so can often cause subtle issues that can be difficult to diagnose. So, frankly, if the **compiler** is complaining, this would suggest that you are compiling as C++. 

*However*, you say that not casting results in `malloc` being underlined in red and having some kind of "error" associated with it. This suggests to me what what you are seeing is not a compiler error, but a warning from an overzealous **editor** (via Intellisense, perhaps in combination with the SDL checks that VS2012 implements) that's trying to preemptively warn you about what it perceives to be an issue before you even compile.