[so] [Tema0][Win]typedef

Costash costashsrc at gmail.com
Mon Feb 25 11:03:37 EET 2013


2013/2/25 Mihai Barbulescu <b12mihai at gmail.com>

> Am intampinat si eu problema Sabinei si s-a rezolvat cu sugestia lui
> Mihnea. Cand am compilat cu -std=c89 in linux le-am prins imediat.
> Inca o chestie: Atentie ca Windows habar n-are de strdup. M-am
> confruntat cu urmatoarea problema:
>
> myhashtable.c:48:2: warning: implicit declaration of function 'strdup'
> [-Wimplicit-function-declaration]
> myhashtable.c:48:18: warning: assignment makes pointer from integer
> without a cast [enabled by default]
>
> Solutia evidenta a fost: faci un strdup al tau si toata lumea e fericita.
>

Sau folosești memcpy :)

Costash.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130225/9ad41153/attachment.html>


More information about the so mailing list