since op is using new, not free, I will assume this is C++ and not C: There is no need for struct keyword in signature.
Qt Code:
  1. void func( ClassName* pClassName)
  2. {
  3. }
  4.  
  5. void foo()
  6. {
  7. ClassName* ptr = new ClassName;
  8.  
  9. func(ptr);
  10. }
To copy to clipboard, switch view to plain text mode 

Having said that, it is a very rare occurrence that anyone should be using new[] instead of e.g. QList or std::vector/queue.