#include #include #include int main(void) { char *password = NULL; password = getpass("Input a password:"); printf("The password is: %s/r/n", password); return 0; } 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/108757/showart_2145960.html
by sunkjz - Linux文档专区 - 2010-01-11 18:24:09 阅读(897) 回复(0)
[code]#include
snprintf getpass environ 三个函数的 函数声明: 函数用途: 头 文 件: 输入参数: 输出参数: 返 回 值: 使用说明: ?
#! /usr/bin/env python #filename:pwd.py # development environment:python2.51 import getpass usr=getpass.getuser() while True: pwd=getpass.getpass("passwd:%s:" % usr) if pwd=='123': print "welcome to python!!!!" break else: print "The password you entered is incorrect" 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/95612/showart_1941369....
刚刚安装httpd-2.2.3时make出错,请各位大侠帮帮忙~~信息如下: [root@backup httpd-2.2.3]# make Making all in srclib make[1]: Entering directory `/home/james/httpd-2.2.3/srclib' Making all in apr make[2]: Entering directory `/home/james/httpd-2.2.3/srclib/apr' make[3]: Entering directory `/home/james/httpd-2.2.3/srclib/apr' /bin/sh /home/james/httpd-2.2.3/srclib/apr/libtool --silent --mode=link gcc -g ...