1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
10 #include "manage_agents.h"
12 /* Global variables */
13 static char __user_buffer[USER_SIZE + 1];
14 static char *__user_buffer_pt;
17 char *read_from_user()
19 memset(__user_buffer, '\0', USER_SIZE + 1);
21 if ((fgets(__user_buffer, USER_SIZE - 1, stdin) == NULL) ||
22 (strlen(__user_buffer) >= (USER_SIZE - 2))) {
27 __user_buffer_pt = chomp(__user_buffer);
29 return (__user_buffer_pt);