ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] warnings
@ 2004-06-28  9:10 php-coder
  2004-06-28  9:27 ` Yakov Bezrukov
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: php-coder @ 2004-06-28  9:10 UTC (permalink / raw)
  To: community

0000100101011110100100101::28.06.2004::0110001001001000100111100100010

  Привет, Linuxоиды!
  
  Извниняюсь, что пишу сюда, но больше не знаю где спросить. При
  компиляции программы получаю предупреждения:
  
  In file included from main.c:20:
  functions.inc.h: In function `get_tracks_names':
  functions.inc.h:100: warning: implicit declaration of function `getline'
  functions.inc.h:109: warning: assignment makes integer from pointer without a cast
  functions.inc.h:118: warning: assignment makes integer from pointer without a cast
  main.c: In function `main':
  main.c:39: warning: pointer targets in passing arg 1 of `strlen' differ in signedness

  Весь вечер возился, но в чем причина и как устранить это так и не
  понял.
  
  В файле functions.inc.h:

  void get_tracks_names(int tracks, unsigned char *tracks_names_array)
       {
        char *buff_pointer = NULL;
  ...
  100 getline(&buff_pointer, &buff_length, stdin);
  ...
  109 tracks_names_array[i] = buff_pointer;
  ...
  118 tracks_names_array[i] = NULL;
      }

  В файле main.c:
  39 printf("Вы ввели: %s\nДлина строки: %d\n", tracks_names_array[i], strlen(tracks_names_array[i]));

  Буду благодарен за любую помощь...
  
-- 
  С уважением, php-coder (mailto:php-coder[at]ngs[dot]ru)
  Registered Linux User #327594
  ALT Linux Master 2.2

010010010010010001010101100::Linux RuleZz!::10001001000100010001000111



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-06-29  4:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-28  9:10 [Comm] warnings php-coder
2004-06-28  9:27 ` Yakov Bezrukov
2004-06-28  9:36   ` Re[2]: " php-coder
2004-06-28  9:45     ` Yakov Bezrukov
2004-06-28 10:25       ` Re[2]: " php-coder
2004-06-28 11:05         ` Yakov Bezrukov
2004-06-29  4:00           ` Re[2]: " php-coder
2004-06-28  9:30 ` php-coder
2004-06-28 10:51   ` Andrey Rahmatullin
2004-06-29  3:50     ` Re[2]: " php-coder
2004-06-28  9:40 ` Andrey Rahmatullin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git