Search Results

Search: Posts Made By: vistastar
3,852
Posted By vistastar
A trick to avoid ESC in vim
Hello, I find a trick to avoid pressing ESC without key-maping in vim. I am pleasure using this method, because ALT key is very comfortble for thumb to press.

What's the trick? the ALT key.
...
3,852
Posted By vistastar
No, I just read it now.
No, I just read it now.
Forum: Programming 12-05-2012
1,871
Posted By vistastar
you need: myfile.getline(number,25); and atoi().
you need:
myfile.getline(number,25); and atoi().
Forum: Programming 12-18-2011
11,133
Posted By vistastar
define another two semaphore: sem_t zero,...
define another two semaphore:

sem_t zero, one;

a thread wait for zero and post one, while the other thread wait for one and post zero.
1,340
Posted By vistastar
You need this gcc option: -std=c99
You need this gcc option:
-std=c99
Forum: Programming 08-26-2011
4,287
Posted By vistastar
1, Only memory allocated explicitly or implicitly...
1, Only memory allocated explicitly or implicitly by malloc() should be free() manually (explicitly or use wrapper of free).

2, If you don't free them, OS will recycle them when the process...
1,225
Posted By vistastar
try the 'file' command
try the 'file' command
12,826
Posted By vistastar
CC is the traditional UNIX C compiler, while GCC...
CC is the traditional UNIX C compiler, while GCC is GNU's compiler set incuding C compiler. On Linux the command cc may be a link to gcc.
2,794
Posted By vistastar
‘$@' means all position parameters, which include...
‘$@' means all position parameters, which include noai.
7,987
Posted By vistastar
1 #!/bin/bash 2 3 if [ $# -ne 3 ];then ...
1 #!/bin/bash
2
3 if [ $# -ne 3 ];then
4 echo "Usage: $0 num1 num2 dir"
5 exit 1
6 fi
7 ls -1 $3 |sed -n "$1,$2p"
8 exit 0
9


...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy