Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "psz" stand for in pszBuffer or the similar?

Tags:

c

I know it is a little bit off topic but I believe I can get the answer anyway here. What does "psz" stand for in pszBuffer or the similar variable in C/C++ system library? I saw a lot of variables prefixed with "psz" and it looks like a pattern.

Thanks!

like image 326
zs2020 Avatar asked Jun 21 '11 23:06

zs2020


3 Answers

This is Hungarian notation. psz normally stands for "(p)ointer to (s)tring, (z)ero-terminated".

like image 131
Oliver Charlesworth Avatar answered Oct 23 '22 08:10

Oliver Charlesworth


Pointer_to_String_terminated_by_Zero

like image 6
pm100 Avatar answered Oct 23 '22 09:10

pm100


Pointer to string, zero terminated.

It is known as Hungarian notation which is something that tends to stir up strong feelings amongst programmers!

like image 6
David Heffernan Avatar answered Oct 23 '22 08:10

David Heffernan