TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Francois Thunus
from: Herbert Bushong
date: 1996-10-07 07:06:00
subject: silly findfirst question

::>    FILEFINDBUF3 *FindBuf;

::>    FindBuf=malloc(sizeof(FILEFINDBUF3));

::> 1) I'm getting a warning
::> "assignment makes pointer from integer without a cast" on
the malloc line
::> why ? I've always done that under dos and my compiler never complained ?

doesn't malloc() return a (void *)?
try casting it:

 FindBuf = (FILEFINDBUF3 *)malloc(sizeof(FILEFINDBUF3));

#  Herbert Bushong    harchon{at}centuryinter.net       [TEAM OS/2]    
-  Blackbeard's BBS   Intelec: 239:600/0            
+  Fido: 1:19/19      http://www.win.net/eunicecity/stltcc/hbush/

---
   RM 1.31 2508   "Fire at Will, Mr. Worf."  "Which one SIR?!?!"
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 19/19 3803/4 395/100 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.