Hi!

I'm working with Microchips USB framework on a PIC18F4550 and I'm pretty new to C. The goal is to understand how it and the PIC works.

Compiler = XC8

After reading some documentation about memset I'm confused with these two lines.

Code:
UEP0 = 0;

memset((void*)&UEP1, 0x00, 0x01);
The first line I understand clears the UEP0 register and from what I understand the second line does the same but for the UEP1 register, or am I wrong?

If I'm not wrong, what is the difference?? Why not just use
Code:
UEP0 = 0;
UEP1 = 0;
//R