We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there reason for not using memset and memcpy instead of zeroing/copying of 16 elements of array? Like this:
memset
memcpy
DHCP_allocated_ip[0] = 0; DHCP_allocated_ip[1] = 0; DHCP_allocated_ip[2] = 0; DHCP_allocated_ip[3] = 0; DHCP_allocated_ip[4] = 0; DHCP_allocated_ip[5] = 0; DHCP_allocated_ip[6] = 0; DHCP_allocated_ip[7] = 0; DHCP_allocated_ip[8] = 0; DHCP_allocated_ip[9] = 0; DHCP_allocated_ip[10] = 0; DHCP_allocated_ip[11] = 0; DHCP_allocated_ip[12] = 0; DHCP_allocated_ip[13] = 0; DHCP_allocated_ip[14] = 0; DHCP_allocated_ip[15] = 0;
The text was updated successfully, but these errors were encountered:
Thank you for your attention. You can use memset() or memcpy(). It means just 16 bytes.
Sorry, something went wrong.
No branches or pull requests
Is there reason for not using
memset
andmemcpy
instead of zeroing/copying of 16 elements of array? Like this:DHCP_allocated_ip[0] = 0;
DHCP_allocated_ip[1] = 0;
DHCP_allocated_ip[2] = 0;
DHCP_allocated_ip[3] = 0;
DHCP_allocated_ip[4] = 0;
DHCP_allocated_ip[5] = 0;
DHCP_allocated_ip[6] = 0;
DHCP_allocated_ip[7] = 0;
DHCP_allocated_ip[8] = 0;
DHCP_allocated_ip[9] = 0;
DHCP_allocated_ip[10] = 0;
DHCP_allocated_ip[11] = 0;
DHCP_allocated_ip[12] = 0;
DHCP_allocated_ip[13] = 0;
DHCP_allocated_ip[14] = 0;
DHCP_allocated_ip[15] = 0;
The text was updated successfully, but these errors were encountered: