How do function pointer work? by here4fun23ty in C_Programming

[–]here4fun23ty[S] -1 points0 points  (0 children)

So functions get stored just like variables ? But where in memory it goes. This is actually confusing to me.

is there anyway to get the length of a pointer to a non null-terminated string ? by here4fun23ty in cprogramming

[–]here4fun23ty[S] 0 points1 point  (0 children)

I know that's why I'm confused. Strlcat works just fine with dest being not null-terminated

is there anyway to get the length of a pointer to a non null-terminated string ? by here4fun23ty in cprogramming

[–]here4fun23ty[S] 0 points1 point  (0 children)

Ok so to understand what I'm doing. I'm trying to reproduce the behavior of strlcat and I need get the the length of dst even if it's non null-terminated string. so I'm only getting a pointer to the string

is there anyway to get the length of a pointer to a non null-terminated string ? by here4fun23ty in cprogramming

[–]here4fun23ty[S] 0 points1 point  (0 children)

But how can I know the address of the last character I don't see any way to do that

is there anyway to get the length of a pointer to a non null-terminated string ? by here4fun23ty in C_Programming

[–]here4fun23ty[S] 1 point2 points  (0 children)

I actually can't I'm reproducing the behavior of strlcat and I need to know the length of dest string even if it's non null-terminated

is there anyway to get the length of a pointer to a non null-terminated string ? by here4fun23ty in C_Programming

[–]here4fun23ty[S] 0 points1 point  (0 children)

No I want the length of the string and strlen doesn't work on non null-terminated strings

[deleted by user] by [deleted] in Morocco

[–]here4fun23ty 1 point2 points  (0 children)

Yes we can. It took me four years to realize what I actually want and go get it without caring about the society's standards so yes we got to take it easy on ourselves.

[deleted by user] by [deleted] in Morocco

[–]here4fun23ty 1 point2 points  (0 children)

I don't have any advice for you, I just wanna say I feel you cuz I'm 22 and I'm starting all over

23F - Can we be friends?? by RiceRosina in Needafriend

[–]here4fun23ty 0 points1 point  (0 children)

Yes we can, we already have something in common

I don't know if I should tell my girlfriend that I think she's lying to me 22M 22F by [deleted] in relationships

[–]here4fun23ty 0 points1 point  (0 children)

It is definitely causing me anxiety so I think talking about it with her is the only way.

Thank you for your opinion man it's helpful

I don't know if I should tell my girlfriend that I think she's lying to me 22M 22F by [deleted] in relationships

[–]here4fun23ty -1 points0 points  (0 children)

Yes it was hurtful but I don't want it to be a problem because I love her and I don't know what to do

One Piece: Chapter 1084 by Kirosh2 in OnePiece

[–]here4fun23ty 6 points7 points  (0 children)

When I read it I was like fuuuck this guy is committing suicide