11169
Type: Posts; User: thlgood
11169
this problem is from 1102 -- LC-Display
maybe, you have better code...
this is my code:
/**********************************
* Name: LC-display
It works thank you
gets(s1) is unsafe when user input more than 80 chars
This is my code
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
Codeblocks is my choice!
Yes I read it.
But it's a big challenge for me to understand some man pages...
Thx
If file is not exist,create it and write a string into it, else write a string into this file.
but the problem is that open() return a bad file descriptor if this file is exist.
code:
/*...
For example:
when you have 1000 numbers, if you don't use arrays. you will find it's hard to sort these numbers...