Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
12 lines
179 B
C
12 lines
179 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "handle.h"
|
|
|
|
void enter_handle(char *value)
|
|
{
|
|
char *index = strchr(value, '\n');
|
|
if(index)
|
|
{
|
|
*index = 0;
|
|
}
|
|
} |