Sure, there are a lot of things I'd do differently if it were my program.
:)

On Tue, Oct 15, 2019 at 10:37 AM Fugu ME100 <[email protected]> wrote:

> I would probably just use memset rather than the for loop. :)
>
> From: M100 <[email protected]> on behalf of Dan Higdon <
> [email protected]>
> Reply-To: <[email protected]>
> Date: Tuesday, October 15, 2019 at 8:10 AM
> To: <[email protected]>
> Subject: Re: [M100] Issue with sd2tpdd
>
> I'd also consider re-writing clear buffer to take a (char *c) parameter,
> like this:
>
> void clearBuffer(*char** buffer, int bufferSize){ //Fills the buffer with
> 0x00
>   for(int i=0; i<bufferSize; i++){
> *    buffer[i] = '\0';*
>   }
> }
>
>

Reply via email to