Author Topic: How do I remove zero termination from a string  (Read 5454 times)

Offline yoran

  • Jr. Member
  • *
  • Posts: 19
How do I remove zero termination from a string
« on: June 09, 2019, 01:16:48 PM »
I have a zero terminated string (''TEXT",0) and want to remove the zero-termination, how do I do this?
« Last Edit: June 09, 2019, 03:52:00 PM by yoran »

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 221
  • Country: gb
    • GPUZoo
Re: How do I remove zero termination from a string
« Reply #1 on: June 09, 2019, 05:52:00 PM »
Move it one character at a time, and stop when you reach the 0.

What code have you tried? Are you writing a 16-, 32- or 64-bit app? Is it for Windows or Linux?
My graphics card database: www.gpuzoo.com

Offline yoran

  • Jr. Member
  • *
  • Posts: 19
Re: How do I remove zero termination from a string
« Reply #2 on: June 10, 2019, 09:33:03 AM »
16 Bit bare bones, and I have a function which I feed a string from a memaddress. However this function takes stringlen instead of zero-termination, so how do I remove the zero-termination?