Conversation
Notices
-
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:43:08 JST this ad CAN be blocked, bitch this the right way to do it? -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:43:06 JST this ad CAN be blocked, bitch @sysrq UUUGGHHHHH -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:43:06 JST this ad CAN be blocked, bitch @sysrq cc @MercurialBuilding @MercurialBlack @Zerglingman [i think u know c] Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:43:07 JST this ad CAN be blocked, bitch @sysrq wait wtf am i doing -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:43:08 JST this ad CAN be blocked, bitch cc @sysrq :cry: plz help -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:43:44 JST this ad CAN be blocked, bitch @MercurialBlack @MercurialBuilding @Zerglingman @sysrq ugh am just going to do char** a = {"my", "words"}
will manually free everything once i dont need itMachismo likes this. -
Machismo (zerglingman@freespeechextremist.com)'s status on Thursday, 26-Oct-2023 02:44:06 JST Machismo @kirby @sysrq @MercurialBuilding @MercurialBlack Based on that error it sounds like you had it right the first time? -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:45:11 JST this ad CAN be blocked, bitch @Zerglingman @MercurialBuilding @sysrq @MercurialBlack i think so but i need words of varying length in this program. c kind of makes this a pain in the ass. Machismo likes this. -
Machismo (zerglingman@freespeechextremist.com)'s status on Thursday, 26-Oct-2023 02:45:57 JST Machismo @kirby @sysrq @MercurialBuilding @MercurialBlack Oh hurr right yeah, chars not strings.
Yeah I think char** is the right way. -
Construction Worker (mercurialbuilding@cawfee.club)'s status on Thursday, 26-Oct-2023 02:47:13 JST Construction Worker @kirby @Zerglingman @sysrq @MercurialBlack IIRC you need to specify all but first dimension of arrays Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:54:02 JST this ad CAN be blocked, bitch @Zerglingman @MercurialBlack @MercurialBuilding @sysrq i forgot to manually free the last thing oops Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:54:02 JST this ad CAN be blocked, bitch @MercurialBlack @MercurialBuilding @Zerglingman @sysrq this shit gonna segfault Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:54:03 JST this ad CAN be blocked, bitch @Zerglingman @MercurialBuilding @sysrq @MercurialBlack test should work Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:54:27 JST this ad CAN be blocked, bitch @MercurialBlack @MercurialBuilding @Zerglingman @sysrq it did segfault Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:55:12 JST this ad CAN be blocked, bitch @MercurialBlack @MercurialBuilding @Zerglingman @sysrq it looks like what i'm looking for is *(name)[] Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:55:16 JST this ad CAN be blocked, bitch @MercurialBlack @MercurialBuilding @Zerglingman @sysrq this also means i just have to free one pointer. this was a waste of code Machismo likes this. -
Machismo (zerglingman@freespeechextremist.com)'s status on Thursday, 26-Oct-2023 02:55:28 JST Machismo @kirby @sysrq @MercurialBuilding @MercurialBlack You chose to do C. -
teknomunk (teknomunk@apogee.polaris-1.work)'s status on Thursday, 26-Oct-2023 02:55:33 JST teknomunk @Zerglingman @MercurialBuilding @kirby @sysrq @MercurialBlack
const char* a[] = { "hi", "hey", "howdy" };Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:55:34 JST this ad CAN be blocked, bitch @teknomunk @MercurialBuilding @Zerglingman @sysrq @MercurialBlack yes this is exactly what i was looking for. Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:56:08 JST this ad CAN be blocked, bitch @Zerglingman @MercurialBuilding @sysrq @MercurialBlack it's fun this way :^) Machismo likes this. -
Machismo (zerglingman@freespeechextremist.com)'s status on Thursday, 26-Oct-2023 02:56:15 JST Machismo @kirby @sysrq @MercurialBuilding @MercurialBlack Fair. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:57:22 JST this ad CAN be blocked, bitch @teknomunk @MercurialBuilding @Zerglingman @sysrq @MercurialBlack do i have to free the pointer? says attempt to free non heap object when i try to free it which is weird. Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 02:59:57 JST this ad CAN be blocked, bitch @teknomunk @MercurialBuilding @Zerglingman @sysrq @MercurialBlack okay, cool Machismo likes this. -
teknomunk (teknomunk@apogee.polaris-1.work)'s status on Thursday, 26-Oct-2023 02:59:58 JST teknomunk @kirby @MercurialBuilding @Zerglingman @sysrq @MercurialBlack
Everything in the code I gave is either a constant string or allocated on the stack, so you should NOT attempt to free it.Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 03:00:03 JST this ad CAN be blocked, bitch @MercurialBuilding @teknomunk @Zerglingman @sysrq @MercurialBlack oh, that's it? so i don't have to free then? Machismo likes this. -
Construction Worker (mercurialbuilding@cawfee.club)'s status on Thursday, 26-Oct-2023 03:00:04 JST Construction Worker @kirby @teknomunk @Zerglingman @sysrq @MercurialBlack you need to free iff you malloc Machismo likes this. -
pwm (pwm@crlf.ninja)'s status on Thursday, 26-Oct-2023 03:00:56 JST pwm @kirby @teknomunk @MercurialBuilding @Zerglingman @sysrq @MercurialBlack you would need to free if you copied the contents of one of those into a buffer that you malloc'ed Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 03:01:01 JST this ad CAN be blocked, bitch @teknomunk @MercurialBlack @MercurialBuilding @Zerglingman @sysrq this is amazing, i can call sizeof on the entire thing and it actually returns a size, no wasteful terminator padding, thank god. Machismo likes this. -
pwm (pwm@crlf.ninja)'s status on Thursday, 26-Oct-2023 03:01:39 JST pwm @kirby @MercurialBlack @MercurialBuilding @Zerglingman @sysrq @teknomunk yes this is sexual innuendo Machismo likes this. -
teknomunk (teknomunk@apogee.polaris-1.work)'s status on Thursday, 26-Oct-2023 03:02:55 JST teknomunk @kirby @MercurialBuilding @Zerglingman @sysrq @MercurialBlack
Every malloc should have a matching free. Never pass anything on the stack or statically allocated to free (it will break your program).Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 03:03:02 JST this ad CAN be blocked, bitch @teknomunk @MercurialBuilding @Zerglingman @sysrq @MercurialBlack so i only free stuff allocated on the heap, that's pretty easy to remember and neat Machismo likes this. -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Thursday, 26-Oct-2023 03:07:37 JST this ad CAN be blocked, bitch @teknomunk @MercurialBuilding @Zerglingman @sysrq @MercurialBlack cool Machismo likes this. -
teknomunk (teknomunk@apogee.polaris-1.work)'s status on Thursday, 26-Oct-2023 03:07:38 JST teknomunk @kirby @MercurialBuilding @Zerglingman @sysrq @MercurialBlack
It's also a good idea to put things on the stack when you can, because you don't have to worry about free'ing it, as the function epilog code that runs when you return will take care of it for you.Machismo likes this.
-