What is the error with the pointer version?

|
Night_H4nter 2022-09-15 17:46:22
I’m mostly into YouTube
grakata_clem 2022-09-15 17:52:56
My gf started watching Kamen Rider btw, she already have bought a belt lol
cfp_95 2022-09-15 17:57:52
Is there anyone who uses dwm, st and tabbed here? I need a hand
Night_H4nter 2022-09-15 18:04:44
do you have nothing to jerk off with?
cfp_95 2022-09-15 18:06:25
Funny πŸ™‚
cfp_95 2022-09-15 18:07:10
I’m serious btw
ReßéL 2022-09-15 18:08:18
cfp_95 2022-09-15 17:57:52
Is there anyone who uses dwm, st and tabbed here? I need a hand

what is question I used dwm and st before

Spektrum_light 2022-09-15 18:19:52
grakata_clem 2022-09-15 17:52:56
My gf started watching Kamen Rider btw, she already have bought a belt lol

wish i had a gf

Glats 2022-09-15 18:21:27
stop using gentoo
wardenunit 2022-09-15 18:21:40
Spektrum_light 2022-09-15 18:19:52
wish i had a gf

Whazzup with Ms Lockhart?

lanciagreggori 2022-09-15 18:23:28
cfp_95 2022-09-15 17:57:52
Is there anyone who uses dwm, st and tabbed here? I need a hand

I don’t use tabbed tho

lanciagreggori 2022-09-15 18:23:35
What even is its function?
yabadaba doo 2022-09-15 18:31:04
qontinuum 2022-09-15 08:08:39
What is the error with the pointer version?

it just segfaults

qontinuum 2022-09-15 19:13:12
yabadaba doo 2022-09-15 18:31:04
it just segfaults

No overlap?

yabadaba doo 2022-09-15 19:14:02
I’m moving s to s+1
yabadaba doo 2022-09-15 19:15:20
Oh maybe if I malloc for s that’ll fix it
qontinuum 2022-09-15 19:15:25
Ah no memmove accepts overlap anyway
qontinuum 2022-09-15 19:15:38
Yes
yabadaba doo 2022-09-15 19:17:12
qontinuum 2022-09-15 19:15:38
Yes

None of the example I looked up did that and s was already pointing to a string literal

qontinuum 2022-09-15 19:17:58
yabadaba doo 2022-09-15 19:17:12
None of the example I looked up did that and s was already pointing to a string literal

That’s the issue, iirc you can’t do what you want on string literals

yabadaba doo 2022-09-15 19:19:17
qontinuum 2022-09-15 19:17:58
That’s the issue, iirc you can’t do what you want on string literals

But there’s code snippets on the internet that do it 😒

qontinuum 2022-09-15 19:22:59
yabadaba doo 2022-09-15 19:19:17
But there’s code snippets on the internet that do it 😒

Do they compile?

yabadaba doo 2022-09-15 19:28:02
Not on my machine
qontinuum 2022-09-15 19:28:26
Maybe it is a standard issue?
yabadaba doo 2022-09-15 19:30:25
I honestly don’t know how check if it is, Google doesn’t yield anything
qontinuum 2022-09-15 19:39:14
Try to add the -std=c99 to your CFLAGS
Spektrum_light 2022-09-15 19:54:44
wardenunit 2022-09-15 18:21:40
Whazzup with Ms Lockhart?

nothing

Spektrum_light 2022-09-15 19:54:52
I meant the guy behind the screen wants a gf
qontinuum 2022-09-15 19:55:04
Spektrum_light 2022-09-15 19:54:52
I meant the guy behind the screen wants a gf

Wait

qontinuum 2022-09-15 19:55:07
You mean
qontinuum 2022-09-15 19:55:14
You aren’t really Cloud Strife?
Spektrum_light 2022-09-15 19:55:19
I am.
qontinuum 2022-09-15 19:55:30
Oh boy, got really afraid
Spektrum_light 2022-09-15 19:55:32
the question is
Spektrum_light 2022-09-15 19:55:34
who are you?
|