#include #include #include #include #include /* * Get the domainpart of the Jabber ID (JID). * See https://datatracker.ietf.org/doc/html/rfc7622#section-3.2 for details. */ char *domainpart(char *jid) { int start = 0; // inclusive int stop = strlen(jid); // exclusive for(int i=0; i