Narrative:

After arriving at fmy to top off the tanks, we departed to pgd. We departed from runway 5. The clearance was 'cleared for takeoff runway 5, left turnout approved.' after reaching a safe altitude, I turned to a 330 degree heading. I continued to climb to 2000 ft MSL. A few mins after takeoff the tower controller said 'cessna, be advised you violated class C airspace, frequency change approved.' prior to that, no mention of the overlying airspace or a possible violation was made. The tower controller did not offer a heading or altitude to remain clear of the class C airspace around rsw.

Google
 

Original NASA ASRS Text

Title: C152 PLT DEPARTING FMY, A CLASS D ARPT, IS INSTRUCTED TO MAKE L TURNOUT ON COURSE. SHORTLY AFTER TKOF, THE PLT IS ADVISED BY THE CTLR THAT HE HAD VIOLATED RSW CLASS C AIRSPACE.

Narrative: AFTER ARRIVING AT FMY TO TOP OFF THE TANKS, WE DEPARTED TO PGD. WE DEPARTED FROM RWY 5. THE CLRNC WAS 'CLRED FOR TKOF RWY 5, L TURNOUT APPROVED.' AFTER REACHING A SAFE ALT, I TURNED TO A 330 DEG HDG. I CONTINUED TO CLB TO 2000 FT MSL. A FEW MINS AFTER TKOF THE TWR CTLR SAID 'CESSNA, BE ADVISED YOU VIOLATED CLASS C AIRSPACE, FREQ CHANGE APPROVED.' PRIOR TO THAT, NO MENTION OF THE OVERLYING AIRSPACE OR A POSSIBLE VIOLATION WAS MADE. THE TWR CTLR DID NOT OFFER A HDG OR ALT TO REMAIN CLR OF THE CLASS C AIRSPACE AROUND RSW.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.