I'm trying to convert IPv4 into IPv6 using some conversion to uint8_t. I know that IPv4 has 4 bytes, and IPv6 16 unsigned ints of 2 bytes, but I can't find the way to do they conversion.
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
uint8_t ipv6[16],direccionIP[] = {193, 110, 128, 200};
ipv6 = &direccionIP; //this doesn't work, and I don't come up with any method
printf("%u", ipv6);
return 0;
}