우분투 환경에서 dll 공부하고있는데 이코드에서 어디가 문제인지 모르겟어요
      글쓴이: rkarkd / 작성시간: 금, 2014/05/09 - 1:07오후    
  
  #include <stdio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
 
 
int main()
{
 char command[10] = {0};
 char input[1024] = {0};
 char search[1024] = {0};
 char del[1024] = {0}; 
 char find[1024] = {0};
 int i = 0;
 
 GList *head = 0;
 GList *cur = 0;
 
 while(1)
 {
  printf("Enter command:");
  scanf("%s",command);
 
 
  if(strcmp(command,"add")==0) // add
  {
   while(strcmp(input,"999")!=0)
   {  
    printf("Enter word to add: ");
    scanf("%s",&input[i++]);
 
    char *temp = (char *)malloc(sizeof(char));
    *temp = input;
 
    head = g_list_append(head, temp);
    temp++;
 
   }
 
	return 0;  
}
}
}코딩은 이거구요
에러메시지는
warning: assignment makes integer from pointer without a cast [enabled by default]
입니다.
*temp = input; 이라고하는데.. 어떻게 해결해야하나요?
Forums: 


?
우분투에서 dll 공부한다는건 뭔 소리고, 포인터 캐스팅 warning 보고 에러라고 하는 건 또 무슨 소린가요?
아마ㅎㅎ
DLL(Double Linked List)를 말하는것 같네요ㅎㅎ
댓글 달기