4 Write Function Mactonum Takes Character String Argument Pointer Struct Containing 3 Unsi Q37136534

4. You are to write a function mactonum() that takes a character string as its argument and a pointer to a struct containing

4. You are to write a function mactonum() that takes a character string as its argument and a pointer to a struct containing 3 unsigned shorts. The character string will be in the form of an Ethernet MAC address, which consists of six pairs of hexadecimal digits separated by colons. For example an input string of “08:00:20:f5:cc:al” should return three unsigned shorts with the values 0x8000, 0x20fS, and 0xccal. The function should return 0

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.