[C] Разбить ввод на блоки
Всем привет. Нужно постоянно считывать stdin, т.е.
while((fgets(buff,LINE_MAX,stdin))!=NULL)
char ch[3][MAX];
Всем привет. Нужно постоянно считывать stdin, т.е.
while((fgets(buff,LINE_MAX,stdin))!=NULL)
char ch[3][MAX];
Например ./a.out file_name 1234567890 Как привильно обратиться к массиву чисел?!
Сразу после установки вот такое в логах, и соответственно в вир. консолях, инет решения проблемы не даёт, может кто-то такое смог исправить. Ubuntu jaunty
[ 8600.649036] hub 2-0:1.0: unable to enumerate USB device on port 6
[ 8600.861043] hub 1-0:1.0: unable to enumerate USB device on port 6
[ 8601.101064] hub 2-0:1.0: unable to enumerate USB device on port 6
[ 8601.313046] hub 1-0:1.0: unable to enumerate USB device on port 6
[ 8601.553035] hub 2-0:1.0: unable to enumerate USB device on port 6
Такая ситуация, пробывала Pidgin, qutim, psi. почти всегда пишет, «Удаленный хост закрыл соеденение». Не могу понять почему!!!!! Пробывала ради интереса под виндой там всё нормально. Тут же с раза 10 только удаётся залогинеться, и то не всегда. Кто-то знает в чём проблема?! Заранее всем спасибо!
Например если просто открываю текущую, то проблем нет
.........
if((mydir=opendir("."))==NULL)
.........
..............
char *dname;
dname=".";
my_fun(*dname)
..............
..............
void my_fun(char pname[])
{
..............
if(dirp=(opendir("p_name"))==NULL)
{
perror("Opendir:");
exit(1);
}
..............
Досталась в подарок Pinnacle 320cx ExpressCard Всё определяется, лампочка на ней загорается.
ajax:~# lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 2304:022e Pinnacle Systems, Inc. [hex]
Bus 003 Device 003: ID 064e:a103 Suyin Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0458:003a KYE Systems Corp. (Mouse Systems)
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ajax:~#
ajax:~# dmesg | grep Pinnacle
[ 517.208745] usb 3-5: Manufacturer: Pinnacle system
[ 517.369872] dvb-usb: found a 'Pinnacle Expresscard 320cx' in cold state, will try to load a firmware
[ 518.142506] dvb-usb: found a 'Pinnacle Expresscard 320cx' in warm state.
[ 518.150507] DVB: registering new adapter (Pinnacle Expresscard 320cx)
[ 518.508283] dvb-usb: Pinnacle Expresscard 320cx successfully initialized and connected.
ajax:~#
ajax:~# ls -l /lib/firmware/
total 36
-rw-r--r-- 1 root root 34306 2007-09-10 00:00 dvb-usb-dib0700-1.10.fw
ajax:~$ tvtime-scanner
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/galka/.tvtime/tvtime.xml
Scanning using TV standard PAL.
/home/galka/.tvtime/stationlist.xml: No existing PAL station list "Custom".
videoinput: Driver won't tell us its norm: Invalid argument
videoinput: Can't get tuner info: Invalid argument
Your capture card driver: uvcvideo [Acer Crystal Eye webcam/0000:00:02.1/256]
does not support full size studio-quality images required by tvtime.
This is true for many low-quality webcams. Please select a
different video device for tvtime to use with the command line
option --device.