24 lines
537 B
C
24 lines
537 B
C
#include "../include/uirc.h"
|
|
#include "stdio.h"
|
|
#include "stdlib.h"
|
|
#include "string.h"
|
|
|
|
int main(void)
|
|
{
|
|
char mesg[513] = {0};
|
|
IRC_User input = {
|
|
.nick = "durov",
|
|
.user = "pavel",
|
|
.host = "telegram.org"};
|
|
int res = 0;
|
|
if ((res = Assm_user(mesg, &input, 512, false)) <= 0) {
|
|
printf("String could not be assembled. %i\n", res);
|
|
return EXIT_FAILURE;
|
|
}
|
|
if (strcmp(mesg, "durov!pavel@telegram.org")) {
|
|
printf("String was not assembled properly. Have %s\n", mesg);
|
|
return EXIT_FAILURE;
|
|
}
|
|
return EXIT_SUCCESS;
|
|
}
|