All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
34
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to General and Gameplay Programming
char* ???
General and Gameplay Programming
Programming
Started by
Sand_Hawk
December 13, 2001 08:50 AM
10
comments, last by
Sand_Hawk
22 years, 4 months ago
Prev
1
2
(current)
Mark_C
122
December 13, 2001 12:00 PM
Notice that in C++ (unlike C) when you pass an array to a function it acts like a pointer.
Making the replace function make more sense
Cancel
Save
Advertisement
Mark_C
122
December 13, 2001 12:01 PM
Its generally bad practice to allocate memory in a function without also freeing it in that function. Unless you are using a class and the destructor deletes it.
Cancel
Save
Prev
1
2
(current)
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Understanding the wavy-like shape in alpha-testing magnification for text rendering
Graphics and GPU Programming
Advertisement
Recommended Tutorials
Simple Gradient Style Shading
Visual Arts
Marketing 101 Part 3: Advertising Part I
Business and Law
The 10 Commandments of Independent Game Development
Business and Law
IGF 09 Interviews: Part 1
Interviews
A Tutorial on Pointers and Arrays in C
General and Gameplay Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top