Rev 4 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
/* $Id: newlist.c 10 2024-09-25 01:20:43Z nishi $ */
#include "ms_newlist.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cm_ipc.h>
int ms_handle_newlist(int argc, char** argv, int start) {
int i;
if(argc - start != 2) {
fprintf(stderr, "Usage: newlist name description\n");
return 1;
}
char* name = argv[start];
char* description = argv[start + 1];
int sock = cm_ipc_connect();
if(sock < 0) {
fprintf(stderr, "IPC connection failure\n");
return 1;
}
close(sock);
return 0;
}